Base class to be used when creating a data portal factory object.
More...
|
void | SetIsReadOnly (object obj, bool value) |
| Sets the IsReadOnly property on the specified object, if possible. More...
|
|
void | CheckRules (object obj) |
| Calls the ValidationRules.CheckRules() method on the specified object, if possible. More...
|
|
void | MarkOld (object obj) |
| Calls the MarkOld method on the specified object, if possible. More...
|
|
void | MarkNew (object obj) |
| Calls the MarkNew method on the specified object, if possible. More...
|
|
void | MarkAsChild (object obj) |
| Calls the MarkAsChild method on the specified object, if possible. More...
|
|
void | LoadProperty< P > (object obj, PropertyInfo< P > propertyInfo, P newValue) |
| Loads a property's managed field with the supplied value. More...
|
|
void | LoadProperty (object obj, IPropertyInfo propertyInfo, object newValue) |
| Loads a property's managed field with the supplied value. More...
|
|
P | ReadProperty< P > (object obj, PropertyInfo< P > propertyInfo) |
| Reads a property's managed field value. More...
|
|
object | ReadProperty (object obj, IPropertyInfo propertyInfo) |
| Reads a property's managed field value. More...
|
|
IDisposable | BypassPropertyChecks (Csla.Core.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. More...
|
|
bool | FieldExists (object obj, Csla.Core.IPropertyInfo property) |
| Gets a value indicating whether a managed field exists for the specified property. More...
|
|
Csla.Core.MobileList< C > | GetDeletedList< C > (object obj) |
| Gets the list of deleted items from an editable collection. More...
|
|
Base class to be used when creating a data portal factory object.
Definition at line 19 of file ObjectFactory.cs.
◆ ObjectFactory()
Creates an instance of the type.
- Parameters
-
Definition at line 25 of file ObjectFactory.cs.
◆ BypassPropertyChecks()
By wrapping this property inside Using block you can set property values on businessObject business object without raising PropertyChanged events and checking user rights.
- Parameters
-
businessObject | Object on with you would like to set property values |
- Returns
- An instance of IDisposable object that allows bypassing of normal authorization checks during property setting.
Definition at line 215 of file ObjectFactory.cs.
◆ CheckRules()
void Csla.Server.ObjectFactory.CheckRules |
( |
object |
obj | ) |
|
|
protected |
Calls the ValidationRules.CheckRules() method on the specified object, if possible.
- Parameters
-
obj | Object on which to call the method. |
Definition at line 55 of file ObjectFactory.cs.
◆ FieldExists()
Gets a value indicating whether a managed field exists for the specified property.
- Parameters
-
obj | Business object. |
property | Property info object. |
Definition at line 226 of file ObjectFactory.cs.
◆ GetDeletedList< C >()
Gets the list of deleted items from an editable collection.
- Template Parameters
-
C | Type of child objects in the colletion. |
- Parameters
-
obj | Editable collection object. |
Definition at line 241 of file ObjectFactory.cs.
◆ LoadProperty()
void Csla.Server.ObjectFactory.LoadProperty |
( |
object |
obj, |
|
|
IPropertyInfo |
propertyInfo, |
|
|
object |
newValue |
|
) |
| |
|
protected |
Loads a property's managed field with the supplied value.
- Parameters
-
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.
Definition at line 152 of file ObjectFactory.cs.
◆ LoadProperty< P >()
Loads a property's managed field with the supplied value.
- Template Parameters
-
- Parameters
-
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.
Definition at line 131 of file ObjectFactory.cs.
◆ MarkAsChild()
void Csla.Server.ObjectFactory.MarkAsChild |
( |
object |
obj | ) |
|
|
protected |
Calls the MarkAsChild method on the specified object, if possible.
- Parameters
-
obj | Object on which to call the method. |
Definition at line 103 of file ObjectFactory.cs.
◆ MarkNew()
void Csla.Server.ObjectFactory.MarkNew |
( |
object |
obj | ) |
|
|
protected |
Calls the MarkNew method on the specified object, if possible.
- Parameters
-
obj | Object on which to call the method. |
Definition at line 87 of file ObjectFactory.cs.
◆ MarkOld()
void Csla.Server.ObjectFactory.MarkOld |
( |
object |
obj | ) |
|
|
protected |
Calls the MarkOld method on the specified object, if possible.
- Parameters
-
obj | Object on which to call the method. |
Definition at line 71 of file ObjectFactory.cs.
◆ ReadProperty()
object Csla.Server.ObjectFactory.ReadProperty |
( |
object |
obj, |
|
|
IPropertyInfo |
propertyInfo |
|
) |
| |
|
protected |
Reads a property's managed field value.
- Parameters
-
obj | Object on which to call the method. |
propertyInfo | PropertyInfo object containing property metadata. |
- Returns
No authorization checks occur when this method is called.
Definition at line 191 of file ObjectFactory.cs.
◆ ReadProperty< P >()
Reads a property's managed field value.
- Template Parameters
-
- Parameters
-
obj | Object on which to call the method. |
propertyInfo | PropertyInfo object containing property metadata. |
No authorization checks occur when this method is called.
Definition at line 173 of file ObjectFactory.cs.
◆ SetIsReadOnly()
void Csla.Server.ObjectFactory.SetIsReadOnly |
( |
object |
obj, |
|
|
bool |
value |
|
) |
| |
|
protected |
Sets the IsReadOnly property on the specified object, if possible.
- Parameters
-
obj | Object on which to operate. |
value | New value for IsReadOnly. |
Definition at line 41 of file ObjectFactory.cs.
◆ ApplicationContext