CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.test/ObjectFactory/Root.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="Root.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Linq;
11using System.Text;
12using Csla;
13
15{
16 [Csla.Server.ObjectFactory("Csla.Test.ObjectFactory.RootFactory, Csla.Tests")]
18 public class Root : BusinessBase<Root>
19 {
20 internal static PropertyInfo<string> DataProperty = RegisterProperty<string>(nameof(Data));
21 public string Data
22 {
23 get { return GetProperty(DataProperty); }
24 set { SetProperty(DataProperty, value); }
25 }
26
27 private static PropertyInfo<Csla.ApplicationContext.ExecutionLocations> LocationProperty = RegisterProperty<Csla.ApplicationContext.ExecutionLocations>(nameof(Location));
29 {
30 get { return GetProperty(LocationProperty); }
31 set { SetProperty(LocationProperty, value); }
32 }
33
34 private static PropertyInfo<TransactionalTypes> TransactionalTypeProperty = RegisterProperty<TransactionalTypes>(nameof(TransactionalType));
36 {
37 get { return GetProperty(TransactionalTypeProperty); }
38 set { SetProperty(TransactionalTypeProperty, value); }
39 }
40
41 private static PropertyInfo<string> IsolationLevelProperty = RegisterProperty<string>(nameof(IsolationLevel));
42 public string IsolationLevel
43 {
44 get { return GetProperty(IsolationLevelProperty); }
45 set { SetProperty(IsolationLevelProperty, value); }
46 }
47
48 private static PropertyInfo<int> TransactionTimeoutProperty = RegisterProperty<int>(nameof(TransactionTimeout));
50 {
51 get { return GetProperty(TransactionTimeoutProperty); }
52 set { SetProperty(TransactionTimeoutProperty, value); }
53 }
54
56 {
58 }
59
60 public void MarkAsNew()
61 {
62 MarkNew();
63 }
64
65 public void MarkAsOld()
66 {
67 MarkOld();
68 }
69 }
70}
Provides consistent context information between the client and server DataPortal objects.
ExecutionLocations ExecutionLocation
Returns a value indicating whether the application code is currently executing on the client or serve...
ExecutionLocations
Enum representing the locations code can execute.
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
Maintains metadata about a property.
Base class to be used when creating a data portal factory object.
ApplicationContext.ExecutionLocations ExecutionLocation
Csla.ApplicationContext.ExecutionLocations Location
TransactionalTypes
Provides a list of possible transactional technologies to be used by the server-side DataPortal.
@ Serializable
Prevents updating or inserting until the transaction is complete.