Manages properties and property data for a business object. More...
Public Member Functions | |
FieldDataManager () | |
Creates an instance of the type. More... | |
List< IPropertyInfo > | GetRegisteredProperties () |
Returns a copy of the property list for the business object. More... | |
IPropertyInfo | GetRegisteredProperty (string propertyName) |
Returns the IPropertyInfo object corresponding to the property name. More... | |
IFieldData | GetFieldData (IPropertyInfo propertyInfo) |
Gets the IFieldData object for a specific field. More... | |
bool | FieldExists (IPropertyInfo propertyInfo) |
Returns a value indicating whether an IFieldData entry exists for the specified property. More... | |
bool | IsFieldDirty (IPropertyInfo propertyInfo) |
Gets a value indicating whether the specified field has been changed. More... | |
bool | IsValid () |
Returns a value indicating whether all fields are valid. More... | |
bool | IsDirty () |
Returns a value indicating whether any fields are dirty. More... | |
List< object > | GetChildren () |
Returns a list of all child objects contained in the list of fields. More... | |
void | UpdateChildren (params object[] parameters) |
Invokes the data portal to update all child objects contained in the list of fields. More... | |
void | UpdateAllChildren (params object[] parameters) |
Invokes the data portal to update all child objects, including those which are not dirty, contained in the list of fields. More... | |
async Task | UpdateChildrenAsync (params object[] parameters) |
Asynchronously invokes the data portal to update all child objects contained in the list of fields. More... | |
async Task | UpdateAllChildrenAsync (params object[] parameters) |
Asynchronously invokes the data portal to update all child objects, including those which are not dirty, contained in the list of fields. More... | |
Static Public Member Functions | |
static void | ForceStaticFieldInit (Type type) |
Forces initialization of the static fields declared by a type, and any of its base class types. More... | |
Protected Member Functions | |
override void | OnGetState (SerializationInfo info, StateMode mode) |
Override this method to insert your field values into the MobileFormatter serialzation stream. More... | |
override void | OnGetChildren (SerializationInfo info, MobileFormatter formatter) |
Serializes child objects. More... | |
override void | OnSetState (SerializationInfo info, StateMode mode) |
Override this method to retrieve your field values from the MobileFormatter serialzation stream. More... | |
override void | OnSetChildren (SerializationInfo info, MobileFormatter formatter) |
Deserializes child objects. More... | |
Properties | |
bool | HasFields [get] |
Gets a value indicating whether there are any managed fields available. More... | |
int | EditLevel [get] |
Gets the current edit level of the object. More... | |
Properties inherited from Csla.Core.IUndoableObject | |
int | EditLevel [get] |
Gets the current edit level of the object. More... | |
Properties inherited from Csla.Core.IUseApplicationContext | |
ApplicationContext | ApplicationContext [getset] |
Gets or sets the current ApplicationContext object. More... | |
Manages properties and property data for a business object.
Definition at line 34 of file FieldDataManager.cs.
Csla.Core.FieldManager.FieldDataManager.FieldDataManager | ( | ) |
Creates an instance of the type.
Definition at line 49 of file FieldDataManager.cs.
bool Csla.Core.FieldManager.FieldDataManager.FieldExists | ( | IPropertyInfo | propertyInfo | ) |
Returns a value indicating whether an IFieldData entry exists for the specified property.
propertyInfo | The property corresponding to the field. |
Definition at line 396 of file FieldDataManager.cs.
|
static |
Forces initialization of the static fields declared by a type, and any of its base class types.
type | Type of object to initialize. |
Definition at line 857 of file FieldDataManager.cs.
List< object > Csla.Core.FieldManager.FieldDataManager.GetChildren | ( | ) |
Returns a list of all child objects contained in the list of fields.
This method returns a list of actual child objects, not a list of IFieldData container objects.
Definition at line 618 of file FieldDataManager.cs.
IFieldData Csla.Core.FieldManager.FieldDataManager.GetFieldData | ( | IPropertyInfo | propertyInfo | ) |
Gets the IFieldData object for a specific field.
propertyInfo | The property corresponding to the field. |
Definition at line 231 of file FieldDataManager.cs.
List< IPropertyInfo > Csla.Core.FieldManager.FieldDataManager.GetRegisteredProperties | ( | ) |
Returns a copy of the property list for the business object.
Returns null if there are no properties registered for this object.
Definition at line 82 of file FieldDataManager.cs.
IPropertyInfo Csla.Core.FieldManager.FieldDataManager.GetRegisteredProperty | ( | string | propertyName | ) |
Returns the IPropertyInfo object corresponding to the property name.
propertyName | Name of the property. |
ArgumentOutOfRangeException | Thrown if the property name doesn't correspond to a registered property. |
Definition at line 95 of file FieldDataManager.cs.
bool Csla.Core.FieldManager.FieldDataManager.IsDirty | ( | ) |
Returns a value indicating whether any fields are dirty.
Definition at line 455 of file FieldDataManager.cs.
bool Csla.Core.FieldManager.FieldDataManager.IsFieldDirty | ( | IPropertyInfo | propertyInfo | ) |
Gets a value indicating whether the specified field has been changed.
propertyInfo | The property corresponding to the field. |
Definition at line 416 of file FieldDataManager.cs.
bool Csla.Core.FieldManager.FieldDataManager.IsValid | ( | ) |
Returns a value indicating whether all fields are valid.
Definition at line 443 of file FieldDataManager.cs.
|
protectedvirtual |
Serializes child objects.
info | Serialization state |
formatter | Serializer instance |
Reimplemented from Csla.Core.MobileObject.
Definition at line 747 of file FieldDataManager.cs.
|
protectedvirtual |
Override this method to insert your field values into the MobileFormatter serialzation stream.
info | Object containing the data to serialize. |
mode | The StateMode indicating why this method was invoked. |
Reimplemented from Csla.Core.MobileObject.
Definition at line 720 of file FieldDataManager.cs.
|
protectedvirtual |
Deserializes child objects.
info | Serialization state |
formatter | Serializer instance |
Reimplemented from Csla.Core.MobileObject.
Definition at line 833 of file FieldDataManager.cs.
|
protectedvirtual |
Override this method to retrieve your field values from the MobileFormatter serialzation stream.
info | Object containing the data to serialize. |
mode | The StateMode indicating why this method was invoked. |
Reimplemented from Csla.Core.MobileObject.
Definition at line 773 of file FieldDataManager.cs.
void Csla.Core.FieldManager.FieldDataManager.UpdateAllChildren | ( | params object[] | parameters | ) |
Invokes the data portal to update all child objects, including those which are not dirty, contained in the list of fields.
parameters | Paramters for method |
Definition at line 653 of file FieldDataManager.cs.
async Task Csla.Core.FieldManager.FieldDataManager.UpdateAllChildrenAsync | ( | params object[] | parameters | ) |
Asynchronously invokes the data portal to update all child objects, including those which are not dirty, contained in the list of fields.
parameters | Parameters for method |
Definition at line 692 of file FieldDataManager.cs.
void Csla.Core.FieldManager.FieldDataManager.UpdateChildren | ( | params object[] | parameters | ) |
Invokes the data portal to update all child objects contained in the list of fields.
parameters | Paramters for method |
Definition at line 633 of file FieldDataManager.cs.
async Task Csla.Core.FieldManager.FieldDataManager.UpdateChildrenAsync | ( | params object[] | parameters | ) |
Asynchronously invokes the data portal to update all child objects contained in the list of fields.
parameters | Parameters for method |
Definition at line 672 of file FieldDataManager.cs.
|
get |
Gets the current edit level of the object.
Definition at line 491 of file FieldDataManager.cs.
|
get |
Gets a value indicating whether there are any managed fields available.
Definition at line 107 of file FieldDataManager.cs.