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.
MissingRoot.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="MissingRoot.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("MissingRootFactory")]
18 public class MissingRoot : BusinessBase<Root>
19 {
20 private static PropertyInfo<string> DataProperty = RegisterProperty(new PropertyInfo<string>("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(new PropertyInfo<Csla.ApplicationContext.ExecutionLocations>("Location"));
29 {
30 get { return GetProperty(LocationProperty); }
31 set { SetProperty(LocationProperty, value); }
32 }
33
34 public void MarkAsNew()
35 {
36 MarkNew();
37 }
38
39 public void MarkAsOld()
40 {
41 MarkOld();
42 }
43 }
44}
Provides consistent context information between the client and server DataPortal objects.
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.
Csla.ApplicationContext.ExecutionLocations Location
Definition: MissingRoot.cs:29
@ Serializable
Prevents updating or inserting until the transaction is complete.