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
//-----------------------------------------------------------------------
8
using
System;
9
using
Csla
.
Serialization
;
10
using
Csla
.
DataPortalClient
;
11
12
namespace
Csla.Testing.Business.CommandBase
13
{
14
[
Serializable
]
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
{
50
ExecutionResult
=
ExecutionSignal
+
Parameter
;
51
}
52
}
53
}
Csla.CommandBase
This is the base class from which command objects will be derived.
Definition:
CommandBase.cs:51
Csla.PropertyInfo
Maintains metadata about a property.
Definition:
Csla/PropertyInfo.cs:22
Csla.Testing.Business.CommandBase.TestCommandBase
Definition:
TestCommandBase.cs:16
Csla.Testing.Business.CommandBase.TestCommandBase.ExecutionResultProperty
static readonly PropertyInfo< string > ExecutionResultProperty
Definition:
TestCommandBase.cs:23
Csla.Testing.Business.CommandBase.TestCommandBase.ExecutionResult
string ExecutionResult
Definition:
TestCommandBase.cs:34
Csla.Testing.Business.CommandBase.TestCommandBase.TestCommandBase
TestCommandBase()
Definition:
TestCommandBase.cs:44
Csla.Testing.Business.CommandBase.TestCommandBase.TestCommandBase
TestCommandBase(string parameter)
Definition:
TestCommandBase.cs:39
Csla.Testing.Business.CommandBase.TestCommandBase.Parameter
string Parameter
Definition:
TestCommandBase.cs:28
Csla.Testing.Business.CommandBase.TestCommandBase.DataPortal_Execute
void DataPortal_Execute()
Definition:
TestCommandBase.cs:48
Csla.Testing.Business.CommandBase.TestCommandBase.ParameterProperty
static readonly PropertyInfo< string > ParameterProperty
Definition:
TestCommandBase.cs:19
Csla.Testing.Business.CommandBase.TestCommandBase.ExecutionSignal
const string ExecutionSignal
Definition:
TestCommandBase.cs:17
Csla.DataPortalClient
Definition:
Csla/DataPortalClient/DataPortalFactory.cs:11
Csla.Serialization
Definition:
AutoNonSerializedAttribute.cs:11
Csla.Testing.Business.CommandBase
Definition:
TestCommandBase.cs:13
Csla
Definition:
BusinessRuleCases.cs:5
Csla.TransactionIsolationLevel.Serializable
@ Serializable
Prevents updating or inserting until the transaction is complete.
Csla.DataPortalOperations.Execute
@ Execute
Execute operation.
Generated by
1.9.2