Base class for an object that is serializable using SerializationFormatterFactory.GetFormatter(). More...
Protected Member Functions | |
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... | |
virtual object | ReadProperty (IPropertyInfo 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... | |
virtual void | LoadProperty (IPropertyInfo propertyInfo, object newValue) |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. More... | |
virtual bool | LoadPropertyMarkDirty (IPropertyInfo propertyInfo, object newValue) |
Loads the property vith new value and mark field dirty if value is changed. 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... | |
Protected Member Functions inherited from Csla.Core.MobileObject | |
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 > (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... | |
Properties | |
ApplicationContext | ApplicationContext [get] |
Gets the current ApplicationContext. More... | |
FieldDataManager | FieldManager [get] |
Gets a reference to the field mananger for this object. More... | |
Properties inherited from Csla.Core.IUseApplicationContext | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets the current ApplicationContext object. More... | |
Additional Inherited Members |
Base class for an object that is serializable using SerializationFormatterFactory.GetFormatter().
Definition at line 26 of file ManagedObjectBase.cs.
|
protectedvirtual |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
propertyInfo | PropertyInfo object containing property metadata. |
newValue | The new value for the property. |
No authorization checks occur when this method is called, and no PropertyChanging or PropertyChanged events are raised. Loading values does not cause validation rules to be invoked.
Definition at line 369 of file ManagedObjectBase.cs.
|
protected |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
P | Type of the property. |
propertyInfo | PropertyInfo object containing property metadata. |
newValue | The new value for the property. |
No authorization checks occur when this method is called, and no PropertyChanging or PropertyChanged events are raised. Loading values does not cause validation rules to be invoked.
Definition at line 287 of file ManagedObjectBase.cs.
|
protected |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
propertyInfo | PropertyInfo object containing property metadata. |
newValue | The new value for the property. |
No authorization checks occur when this method is called, and no PropertyChanging or PropertyChanged events are raised. Loading values does not cause validation rules to be invoked.
Definition at line 242 of file ManagedObjectBase.cs.
|
protectedvirtual |
Loads the property vith new value and mark field dirty if value is changed.
propertyInfo | The property info. |
newValue | The new value. |
Definition at line 384 of file ManagedObjectBase.cs.
|
protectedvirtual |
This method is called on a newly deserialized object after deserialization is complete.
context | Serialization context object. |
Definition at line 504 of file ManagedObjectBase.cs.
|
protectedvirtual |
Override this method to manually retrieve child object data from the serializations stream.
info | Serialization info. |
formatter | Reference to the SerializationFormatterFactory.GetFormatter(). |
Reimplemented from Csla.Core.MobileObject.
Definition at line 459 of file ManagedObjectBase.cs.
|
protected |
Raises the PropertyChanged event.
propertyInfo | The property info object for the changed property. |
Definition at line 444 of file ManagedObjectBase.cs.
|
protected |
Raises the PropertyChanged event.
propertyName | Name of the changed property. |
Definition at line 433 of file ManagedObjectBase.cs.
|
protectedvirtual |
Override this method to manually serialize child objects into the serialization stream.
info | Serialization info. |
formatter | Reference to the SerializationFormatterFactory.GetFormatter(). |
Reimplemented from Csla.Core.MobileObject.
Definition at line 476 of file ManagedObjectBase.cs.
|
protectedvirtual |
Gets a property's value as a specified type.
propertyInfo | PropertyInfo object containing property metadata. |
Definition at line 202 of file ManagedObjectBase.cs.
|
protected |
Gets a property's value as a specified type.
P | Type of the property. |
propertyInfo | PropertyInfo object containing property metadata. |
Definition at line 177 of file ManagedObjectBase.cs.
|
protected |
Gets a property's value from the list of managed field values, converting the value to an appropriate type.
F | Type of the field. |
P | Type of the property. |
propertyInfo | PropertyInfo object containing property metadata. |
Definition at line 164 of file ManagedObjectBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the type.
P | Type of property. |
objectType | Type of object to which the property belongs. |
info | PropertyInfo object for the property. |
Definition at line 77 of file ManagedObjectBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
T | Type of object to which the property belongs. |
P | Type of property |
propertyLambdaExpression | Property Expression |
Definition at line 91 of file ManagedObjectBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
T | Type of Target |
P | Type of property |
propertyLambdaExpression | Property Expression |
defaultValue | Default Value for the property |
Definition at line 107 of file ManagedObjectBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
T | |
P | Type of property |
propertyLambdaExpression | Property Expression |
friendlyName | Friendly description for a property to be used in databinding |
Definition at line 123 of file ManagedObjectBase.cs.
|
staticprotected |
Indicates that the specified property belongs to the business object type.
T | Type of Target |
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 140 of file ManagedObjectBase.cs.
|
getprotected |
Gets the current ApplicationContext.
Definition at line 35 of file ManagedObjectBase.cs.
|
getprotected |
Gets a reference to the field mananger for this object.
Definition at line 45 of file ManagedObjectBase.cs.