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/Basic/CommandObject.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CommandObject.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.Text;
12
13namespace Csla.Test.Basic
14{
16 public class CommandObject : Csla.CommandBase<CommandObject>
17 {
18
19 private static object locker = new object();
20
21 public static PropertyInfo<string> APropertyProperty = RegisterProperty<string>(o => o.AProperty);
22
23 public string AProperty
24 {
25 get { return ReadProperty(APropertyProperty); }
26 set { LoadProperty(APropertyProperty, value); }
27 }
28
29 [RunLocal]
30 [Create]
31 private void Create()
32 { }
33
34 [Execute]
35 protected void DataPortal_Execute()
36 {
37 lock (locker)
38 {
39 AProperty = "Executed";
40 }
41 }
42
44 {
45 }
46 }
47}
Maintains metadata about a property.
static PropertyInfo< string > APropertyProperty
@ Serializable
Prevents updating or inserting until the transaction is complete.