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.netcore.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 private string _property = "";
22 public string AProperty
23 {
24 get
25 {
26 return _property;
27 }
28 }
29
30 [Create]
31 protected void DataPortal_Create()
32 {
33 }
34
35 [Execute]
36 protected void DataPortal_Execute()
37 {
38 lock (locker)
39 {
40 TestResults.Add("CommandObject", "DataPortal_Execute called");
41 _property = "Executed";
42 }
43 }
44
46 {
47 }
48 }
49}
This is the base class from which command objects will be derived.
Definition: CommandBase.cs:51
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
Definition: TestResults.cs:21
static void Add(string key, string value)
Add an item to the test results, to indicate an outcome of a particular operation
Definition: TestResults.cs:29
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Execute
Execute operation.