9using System.Collections.Generic;
34 list.IsReadOnly = value;
46 var target = obj as IDataPortalTarget;
50 MethodCaller.CallMethodIfImplemented(obj,
"CheckRules",
null);
62 var target = obj as IDataPortalTarget;
66 MethodCaller.CallMethodIfImplemented(obj,
"MarkOld",
null);
78 var target = obj as IDataPortalTarget;
82 MethodCaller.CallMethodIfImplemented(obj,
"MarkNew",
null);
94 var target = obj as IDataPortalTarget;
98 MethodCaller.CallMethodIfImplemented(obj,
"MarkAsChild",
null);
122 var target = obj as Core.IManageProperties;
124 target.LoadProperty<P>(propertyInfo, newValue);
143 var target = obj as Core.IManageProperties;
145 target.LoadProperty(propertyInfo, newValue);
164 var target = obj as Core.IManageProperties;
166 return target.ReadProperty(propertyInfo);
182 var target = obj as IManageProperties;
184 return target.ReadProperty(propertyInfo);
206 return businessObject.BypassPropertyChecks;
217 var target = obj as Core.IManageProperties;
219 return target.FieldExists(property);
232 var target = obj as Core.IEditableCollection;
This is the non-generic base class from which most business objects will be derived.
Implements a list that is serializable using the SerializationFormatterFactory.GetFormatter().
A strongly-typed resource class, for looking up localized strings, etc.
static string IManagePropertiesRequiredException
Looks up a localized string similar to Target object must implement IManageProperties.
static string IEditableCollectionRequiredException
Looks up a localized string similar to Target object must implement IEditableCollection.
Maintains metadata about a property.
Base class to be used when creating a data portal factory object.
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 SetIsReadOnly(object obj, bool value)
Sets the IsReadOnly property on the specified object, if possible.
void LoadProperty(object obj, IPropertyInfo propertyInfo, object newValue)
Loads a property's managed field with the supplied value.
Csla.Core.MobileList< C > GetDeletedList< C >(object obj)
Gets the list of deleted items from an editable collection.
void LoadProperty< P >(object obj, PropertyInfo< P > propertyInfo, P newValue)
Loads a property's managed field with the supplied value.
bool FieldExists(object obj, Csla.Core.IPropertyInfo property)
Gets a value indicating whether a managed field exists for the specified property.
P ReadProperty< P >(object obj, PropertyInfo< P > propertyInfo)
Reads a property's managed field value.
void MarkAsChild(object obj)
Calls the MarkAsChild method on the specified object, if possible.
void CheckRules(object obj)
Calls the ValidationRules.CheckRules() method on the specified object, if possible.
IDisposable BypassPropertyChecks(Csla.Core.BusinessBase businessObject)
By wrapping this property inside Using block you can set property values on businessObject business o...
object ReadProperty(object obj, IPropertyInfo propertyInfo)
Reads a property's managed field value.
Maintains metadata about a property.