This is the base class from which command objects will be derived. More...
Public Member Functions | |
CommandBase () | |
Creates an instance of the type. More... | |
T | Clone () |
Creates a clone of the object. More... | |
Protected Member Functions | |
virtual void | Initialize () |
Override this method to set up event handlers so user code in a partial class can respond to events raised by generated code. More... | |
virtual void | DataPortal_OnDataPortalInvoke (DataPortalEventArgs e) |
Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method. More... | |
virtual void | DataPortal_OnDataPortalInvokeComplete (DataPortalEventArgs e) |
Called by the server-side DataPortal after calling the requested DataPortal_xyz method. More... | |
virtual void | DataPortal_OnDataPortalException (DataPortalEventArgs e, Exception ex) |
Called by the server-side DataPortal if an exception occurs during server-side processing. More... | |
virtual object | GetClone () |
Creates a clone of the object. More... | |
![]() | |
P | ReadPropertyConvert< F, P > (PropertyInfo< F > propertyInfo) |
Gets a property's value from the list of managed field values, converting the value to an appropriate type. More... | |
P | ReadProperty< P > (PropertyInfo< P > propertyInfo) |
Gets a property's value as a specified type. More... | |
void | LoadPropertyConvert< P, F > (PropertyInfo< P > propertyInfo, F newValue) |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More... | |
void | LoadProperty< P > (PropertyInfo< P > propertyInfo, P newValue) |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More... | |
void | OnPropertyChanged (string propertyName) |
Raises the PropertyChanged event. More... | |
void | OnPropertyChanged (IPropertyInfo propertyInfo) |
Raises the PropertyChanged event. More... | |
override void | OnGetChildren (SerializationInfo info, MobileFormatter formatter) |
Override this method to manually retrieve child object data from the serializations stream. More... | |
override void | OnSetChildren (SerializationInfo info, MobileFormatter formatter) |
Override this method to manually serialize child objects into the serialization stream. More... | |
virtual void | OnDeserialized (System.Runtime.Serialization.StreamingContext context) |
This method is called on a newly deserialized object after deserialization is complete. More... | |
![]() | |
virtual void | OnGetState (SerializationInfo info, StateMode mode) |
Override this method to insert your field values into the MobileFormatter serialzation stream. More... | |
virtual void | OnSetState (SerializationInfo info, StateMode mode) |
Override this method to retrieve your field values from the MobileFormatter serialzation stream. More... | |
Static Protected Member Functions | |
static PropertyInfo< P > | RegisterProperty< P > (PropertyInfo< P > info) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (string propertyName) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (string propertyName, RelationshipTypes relationship) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, RelationshipTypes relationship) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (string propertyName, string friendlyName) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (string propertyName, string friendlyName, P defaultValue, RelationshipTypes relationship) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue, RelationshipTypes relationship) |
Indicates that the specified property belongs to the business object type. More... | |
![]() | |
static PropertyInfo< P > | RegisterProperty< P > (Type objectType, PropertyInfo< P > info) |
Indicates that the specified property belongs to the type. More... | |
static PropertyInfo< P > | RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression, P defaultValue) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName) |
Indicates that the specified property belongs to the business object type. More... | |
static PropertyInfo< P > | RegisterProperty< T, P > (Expression< Func< T, object > > propertyLambdaExpression, string friendlyName, P defaultValue) |
Indicates that the specified property belongs to the business object type. More... | |
Additional Inherited Members | |
![]() | |
ApplicationContext | ApplicationContext [get] |
Gets the current ApplicationContext. More... | |
FieldDataManager | FieldManager [get] |
Gets a reference to the field mananger for this object. More... | |
![]() | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets the current ApplicationContext object. More... | |
![]() | |
int | Identity [get] |
Gets a value representing this object instance's unique identity value within the business object graph. More... | |
This is the base class from which command objects will be derived.
Command objects allow the execution of arbitrary server-side functionality. Most often, this involves the invocation of a stored procedure in the database, but can involve any other type of stateless, atomic call to the server instead.
To implement a command object, inherit from CommandBase and override the DataPortal_Execute method. In this method you can implement any server-side code as required.
To pass data to/from the server, use instance variables within the command object itself. The command object is instantiated on the client, and is passed by value to the server where the DataPortal_Execute method is invoked. The command object is then returned to the client by value.
T | : | CommandBase<T> |
Definition at line 46 of file CommandBase.cs.
Csla.CommandBase< T >.CommandBase | ( | ) |
Creates an instance of the type.
Definition at line 55 of file CommandBase.cs.
T Csla.CommandBase< T >.Clone | ( | ) |
Creates a clone of the object.
Definition at line 219 of file CommandBase.cs.
|
protectedvirtual |
Called by the server-side DataPortal if an exception occurs during server-side processing.
e | The DataPortalContext object passed to the DataPortal. |
ex | The Exception thrown during processing. |
Definition at line 147 of file CommandBase.cs.
|
protectedvirtual |
Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method.
e | The DataPortalContext object passed to the DataPortal. |
Definition at line 122 of file CommandBase.cs.
|
protectedvirtual |
Called by the server-side DataPortal after calling the requested DataPortal_xyz method.
e | The DataPortalContext object passed to the DataPortal. |
Definition at line 134 of file CommandBase.cs.
|
protectedvirtual |
Creates a clone of the object.
Definition at line 208 of file CommandBase.cs.
|
protectedvirtual |
Override this method to set up event handlers so user code in a partial class can respond to events raised by generated code.
Definition at line 67 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyLambdaExpression | Property Expression |
Definition at line 265 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyLambdaExpression | Property Expression |
relationship | Relationship with property value. |
Definition at line 292 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyLambdaExpression | Property Expression |
friendlyName | Friendly description for a property to be used in databinding |
Definition at line 319 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyLambdaExpression | Property Expression |
friendlyName | Friendly description for a property to be used in databinding |
defaultValue | Default Value for the property |
Definition at line 348 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyLambdaExpression | Property Expression |
friendlyName | Friendly description for a property to be used in databinding |
defaultValue | Default Value for the property |
relationship | Relationship with property value. |
Definition at line 379 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property. |
info | PropertyInfo object for the property. |
Definition at line 241 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyName | Property name from nameof() |
Definition at line 253 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyName | Property name from nameof() |
relationship | Relationship with property value. |
Definition at line 279 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyName | Property name from nameof() |
friendlyName | Friendly description for a property to be used in databinding |
Definition at line 306 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyName | Property name from nameof() |
friendlyName | Friendly description for a property to be used in databinding |
defaultValue | Default Value for the property |
Definition at line 334 of file CommandBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
P | Type of property |
propertyName | Property name from nameof() |
friendlyName | Friendly description for a property to be used in databinding |
defaultValue | Default Value for the property |
relationship | Relationship with property value. |
Definition at line 364 of file CommandBase.cs.