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.
TestCommandBase.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="TestCommandBase.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;
11
13{
15 public class TestCommandBase : Csla.CommandBase<TestCommandBase>
16 {
17 public const string ExecutionSignal = "Executed command with parameter: ";
18
19 public static readonly PropertyInfo<string> ParameterProperty = RegisterProperty(
20 typeof(TestCommandBase),
21 new PropertyInfo<string>("Parameter"));
22
23 public static readonly PropertyInfo<string> ExecutionResultProperty = RegisterProperty(
24 typeof(TestCommandBase),
25 new PropertyInfo<string>("ExecutionResult"));
26
27 public string Parameter
28 {
29 get { return ReadProperty(ParameterProperty); }
30 protected set { LoadProperty(ParameterProperty, value); }
31 }
32
33 public string ExecutionResult
34 {
35 get { return ReadProperty(ExecutionResultProperty); }
36 protected set { LoadProperty(ExecutionResultProperty, value); }
37 }
38
39 public TestCommandBase(string parameter)
40 {
41 Parameter = parameter;
42 }
43
44 protected TestCommandBase()
45 { }
46
47 [Execute]
48 protected void DataPortal_Execute()
49 {
51 }
52 }
53}
This is the base class from which command objects will be derived.
Definition: CommandBase.cs:51
Maintains metadata about a property.
static readonly PropertyInfo< string > ExecutionResultProperty
static readonly PropertyInfo< string > ParameterProperty
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Execute
Execute operation.