Manages properties and property data for a business object. More...
Public Member Functions | |
| FieldDataManager () | |
| Creates an instance of the object. 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... | |
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... | |
Manages properties and property data for a business object.
Definition at line 29 of file FieldDataManager.cs.
| Csla.Core.FieldManager.FieldDataManager.FieldDataManager | ( | ) |
Creates an instance of the object.
Definition at line 41 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 353 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 765 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 566 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 187 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 73 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 86 of file FieldDataManager.cs.
| bool Csla.Core.FieldManager.FieldDataManager.IsDirty | ( | ) |
Returns a value indicating whether any fields are dirty.
Definition at line 412 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 373 of file FieldDataManager.cs.
| bool Csla.Core.FieldManager.FieldDataManager.IsValid | ( | ) |
Returns a value indicating whether all fields are valid.
Definition at line 400 of file FieldDataManager.cs.
|
protectedvirtual |
Serializes child objects.
| info | Serialization state |
| formatter | Serializer instance |
Reimplemented from Csla.Core.MobileObject.
Definition at line 655 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 628 of file FieldDataManager.cs.
|
protectedvirtual |
Deserializes child objects.
| info | Serialization state |
| formatter | Serializer instance |
Reimplemented from Csla.Core.MobileObject.
Definition at line 741 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 681 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 600 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 581 of file FieldDataManager.cs.
|
get |
Gets the current edit level of the object.
Definition at line 448 of file FieldDataManager.cs.
|
get |
Gets a value indicating whether there are any managed fields available.
Definition at line 98 of file FieldDataManager.cs.