45 list.IsReadOnly = value;
57 var target = obj as IDataPortalTarget;
61 MethodCaller.CallMethodIfImplemented(obj,
"CheckRules",
null);
73 var target = obj as IDataPortalTarget;
77 MethodCaller.CallMethodIfImplemented(obj,
"MarkOld",
null);
89 var target = obj as IDataPortalTarget;
93 MethodCaller.CallMethodIfImplemented(obj,
"MarkNew",
null);
105 var target = obj as IDataPortalTarget;
107 target.MarkAsChild();
109 MethodCaller.CallMethodIfImplemented(obj,
"MarkAsChild",
null);
133 var target = obj as Core.IManageProperties;
135 target.LoadProperty<P>(propertyInfo, newValue);
154 var target = obj as Core.IManageProperties;
156 target.LoadProperty(propertyInfo, newValue);
175 var target = obj as Core.IManageProperties;
177 return target.ReadProperty(propertyInfo);
193 var target = obj as IManageProperties;
195 return target.ReadProperty(propertyInfo);
217 return businessObject.BypassPropertyChecks;
228 var target = obj as Core.IManageProperties;
230 return target.FieldExists(property);
243 var target = obj as Core.IEditableCollection;
Provides consistent context information between the client and server DataPortal objects.
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.
ObjectFactory(ApplicationContext applicationContext)
Creates an instance of the type.
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.