![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Base class to be used when creating a data portal factory object. More...
Public Member Functions | |
| ObjectFactory (ApplicationContext applicationContext) | |
| Creates an instance of the type. | |
Protected Member Functions | |
| void | SetIsReadOnly (object obj, bool value) |
| Sets the IsReadOnly property on the specified object, if possible. | |
| void | CheckRules (object obj) |
| Calls the ValidationRules.CheckRules() method on the specified object, if possible. | |
| async Task | CheckRulesAsync (object obj) |
| Calls the ValidationRules.CheckRules() method on the specified object, if possible. | |
| async Task | WaitForIdle (object obj) |
| Calls the WaitForIdle() method on the specified object with the default timeout, if possible. | |
| async Task | WaitForIdle (object obj, CancellationToken ct) |
| Calls the WaitForIdle() method on the specified object with the given timeout, if possible. | |
| void | MarkOld (object obj) |
| Calls the MarkOld method on the specified object, if possible. | |
| void | MarkNew (object obj) |
| Calls the MarkNew method on the specified object, if possible. | |
| void | MarkAsChild (object obj) |
| Calls the MarkAsChild method on the specified object, if possible. | |
| void | LoadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (object obj, PropertyInfo< P > propertyInfo, P? newValue) |
| Loads a property's managed field with the supplied value. | |
| void | LoadProperty (object obj, IPropertyInfo propertyInfo, object? newValue) |
| Loads a property's managed field with the supplied value. | |
| P? | ReadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (object obj, PropertyInfo< P > propertyInfo) |
| Reads a property's managed field value. | |
| object? | ReadProperty (object obj, IPropertyInfo propertyInfo) |
| Reads a property's managed field value. | |
| IDisposable | BypassPropertyChecks (BusinessBase businessObject) |
| By wrapping this property inside Using block you can set property values on businessObject business object without raising PropertyChanged events and checking user rights. | |
| bool | FieldExists (object obj, IPropertyInfo property) |
| Gets a value indicating whether a managed field exists for the specified property. | |
| Csla.Core.MobileList< C > | GetDeletedList<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] C > (object obj) |
| Gets the list of deleted items from an editable collection. | |
Properties | |
| ApplicationContext | ApplicationContext [get, set] |
| Gets a reference to the current ApplicationContext. | |
Base class to be used when creating a data portal factory object.
|
inline |
Creates an instance of the type.
| applicationContext | The application context. |
| ArgumentNullException | applicationContext is null. |
|
inlineprotected |
By wrapping this property inside Using block you can set property values on businessObject business object without raising PropertyChanged events and checking user rights.
| businessObject | Object on with you would like to set property values |
| ArgumentNullException | businessObject is null. |
|
inlineprotected |
Calls the ValidationRules.CheckRules() method on the specified object, if possible.
| obj | Object on which to call the method. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Calls the ValidationRules.CheckRules() method on the specified object, if possible.
| obj | Object on which to call the method. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Gets a value indicating whether a managed field exists for the specified property.
| obj | Business object. |
| property | Property info object. |
| ArgumentNullException | obj or property is null. |
|
inlineprotected |
Gets the list of deleted items from an editable collection.
| C | Type of child objects in the collection. |
| obj | Editable collection object. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Loads a property's managed field with the supplied value.
| obj | Object on which to call the method. |
| 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.
| ArgumentNullException | obj or propertyInfo is null. |
|
inlineprotected |
Loads a property's managed field with the supplied value.
| P | Type of the property. |
| obj | Object on which to call the method. |
| 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.
| ArgumentNullException | obj or propertyInfo is null. |
|
inlineprotected |
Calls the MarkAsChild method on the specified object, if possible.
| obj | Object on which to call the method. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Calls the MarkNew method on the specified object, if possible.
| obj | Object on which to call the method. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Calls the MarkOld method on the specified object, if possible.
| obj | Object on which to call the method. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Reads a property's managed field value.
| obj | Object on which to call the method. |
| propertyInfo | PropertyInfo object containing property metadata. |
No authorization checks occur when this method is called.
| ArgumentNullException | obj or propertyInfo is null. |
|
inlineprotected |
Reads a property's managed field value.
| P |
| obj | Object on which to call the method. |
| propertyInfo | PropertyInfo object containing property metadata. |
No authorization checks occur when this method is called.
| ArgumentNullException | obj or propertyInfo is null. |
|
inlineprotected |
Sets the IsReadOnly property on the specified object, if possible.
| obj | Object on which to operate. |
| value | New value for IsReadOnly. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Calls the WaitForIdle() method on the specified object with the default timeout, if possible.
| obj | Object on which to call the method. |
| ArgumentNullException | obj is null. |
|
inlineprotected |
Calls the WaitForIdle() method on the specified object with the given timeout, if possible.
| obj | Object on which to call the method. |
| ct | The cancellation token. |
| ArgumentNullException | obj is null. |
|
getsetprotected |
Gets a reference to the current ApplicationContext.