![]() |
CSLA .NET 10.0.0
A home for your business logic
|
This is a base class from which readonly business classes can be derived. More...
Public Member Functions | |
| override string | ToString () |
| Returns a text representation of this object by returning the GetIdValue value in text form. | |
| virtual bool | CanReadProperty (IPropertyInfo property) |
| Returns true if the user is allowed to read the calling property. | |
| bool | CanReadProperty (IPropertyInfo property, bool throwOnFalse) |
| Returns true if the user is allowed to read the calling property. | |
| bool | CanReadProperty (string propertyName) |
| virtual bool | CanExecuteMethod (IMemberInfo method) |
| Returns true if the user is allowed to execute the specified method. | |
| bool | CanExecuteMethod (IMemberInfo method, bool throwOnFalse) |
| Returns true if the user is allowed to execute the specified method. | |
| virtual bool | CanExecuteMethod (string methodName) |
| Returns true if the user is allowed to execute the specified method. | |
| virtual object | GetClone () |
| Creates a clone of the object. | |
| T | Clone () |
| Creates a clone of the object. | |
| async Task | WaitForIdle () |
| Await this method to ensure business object is not busy running async rules. | |
| Task | WaitForIdle (TimeSpan timeout) |
| Await this method to ensure business object is not busy running async rules. | |
| Task | WaitForIdle (CancellationToken ct) |
| Waits for the object to become idle. | |
Protected Member Functions | |
| virtual ? object | GetIdValue () |
| Override this method to return a unique identifying value for this object. | |
| ReadOnlyBase () | |
| Creates an instance of the type. | |
| virtual void | Initialize () |
| Override this method to set up event handlers so user code in a partial class can respond to events raised by generated code. | |
| virtual void | AddBusinessRules () |
| Override this method to add per-type authorization rules for your type's properties. | |
| virtual void | DataPortal_OnDataPortalInvoke (DataPortalEventArgs e) |
| Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method. | |
| virtual void | DataPortal_OnDataPortalInvokeComplete (DataPortalEventArgs e) |
| Called by the server-side DataPortal after calling the requested DataPortal_xyz method. | |
| virtual void | DataPortal_OnDataPortalException (DataPortalEventArgs e, Exception ex) |
| Called by the server-side DataPortal if an exception occurs during data access. | |
| virtual void | Child_OnDataPortalInvoke (DataPortalEventArgs e) |
| Called by the server-side DataPortal prior to calling the requested DataPortal_XYZ method. | |
| virtual void | Child_OnDataPortalInvokeComplete (DataPortalEventArgs e) |
| Called by the server-side DataPortal after calling the requested DataPortal_XYZ method. | |
| virtual void | Child_OnDataPortalException (DataPortalEventArgs e, Exception ex) |
| Called by the server-side DataPortal if an exception occurs during data access. | |
| virtual void | Deserialized () |
| Invoked after the object has been deserialized to allow derived classes to perform custom post-deserialization processing. | |
| P? | GetProperty< P > (string propertyName, P? field, P? defaultValue) |
| Gets a property's value, first checking authorization. | |
| P? | GetProperty< P > (string propertyName, P? field, P? defaultValue, NoAccessBehavior noAccess) |
| Gets a property's value, first checking authorization. | |
| P? | GetProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo, P? field) |
| Gets a property's value, first checking authorization. | |
| P? | GetProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo, P? field, P? defaultValue, NoAccessBehavior noAccess) |
| Gets a property's value, first checking authorization. | |
| P? | LazyGetProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > property, Func< P > valueGenerator) |
| Lazily initializes a property and returns the resulting value. | |
| bool | PropertyIsLoading (IPropertyInfo propertyInfo) |
| Gets a value indicating whether a lazy loaded property is currently being retrieved. | |
| P? | LazyGetPropertyAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > property, Task< P > factory) |
| Lazily initializes a property and returns the resulting value. | |
| P? | GetPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< F > propertyInfo, F? field) |
| Gets a property's value as a specified type, first checking authorization. | |
| P? | GetPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< F > propertyInfo, F? field, NoAccessBehavior noAccess) |
| Gets a property's value as a specified type, first checking authorization. | |
| P? | GetProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo) |
| Gets a property's managed field value, first checking authorization. | |
| P? | GetPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< F > propertyInfo) |
| Gets a property's value from the list of managed field values, first checking authorization, and converting the value to an appropriate type. | |
| P? | GetPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< F > propertyInfo, NoAccessBehavior noAccess) |
| Gets a property's value from the list of managed field values, first checking authorization, and converting the value to an appropriate type. | |
| P? | GetProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo, NoAccessBehavior noAccess) |
| Gets a property's value as a specified type, first checking authorization. | |
| object? | GetProperty (IPropertyInfo propertyInfo) |
| Gets a property's value as a specified type. | |
| P? | ReadPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< F > propertyInfo) |
| Gets a property's value from the list of managed field values, converting the value to an appropriate type. | |
| P? | ReadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo) |
| Gets a property's value as a specified type. | |
| virtual ? object | ReadProperty (IPropertyInfo propertyInfo) |
| Gets a property's value as a specified type. | |
| P? | LazyReadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > property, Func< P > valueGenerator) |
| Gets a property's value as a specified type. | |
| P? | LazyReadPropertyAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > property, Task< P > factory) |
| Gets a property's value as a specified type. | |
| void | LoadPropertyConvert<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] F > (PropertyInfo< P > propertyInfo, F? newValue) |
| Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. | |
| void | LoadProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > propertyInfo, P? newValue) |
| Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. | |
| virtual void | LoadProperty (IPropertyInfo propertyInfo, object? newValue) |
| Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. | |
| void | LoadPropertyAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] R > (PropertyInfo< R > property, Task< R > factory) |
| Load a property from an async method. | |
| void | MarkBusy () |
| Marks the object as being busy (it is running an async operation). | |
| void | MarkIdle () |
| Marks the object as being not busy (it is not running an async operation). | |
| void | OnBusyChanged (string propertyName, bool busy) |
| Raises the BusyChanged event. | |
| virtual void | OnBusyChanged (BusyChangedEventArgs args) |
| Raises the BusyChanged event. | |
| override void | OnGetChildren (SerializationInfo info, MobileFormatter formatter) |
| Override this method to insert your child object references into the MobileFormatter serialization stream. | |
| override void | OnSetChildren (SerializationInfo info, MobileFormatter formatter) |
| Override this method to retrieve your child object references from the MobileFormatter serialization stream. | |
| virtual void | OnUnhandledAsyncException (Core.ErrorEventArgs error) |
| Raises the UnhandledAsyncException event. | |
| void | OnUnhandledAsyncException (object originalSender, Exception error) |
| Raises the UnhandledAsyncException event. | |
| Protected Member Functions inherited from Csla.Core.BindableBase | |
| BindableBase () | |
| Creates an instance of the type. | |
| virtual bool | ShouldHandlerSerialize (PropertyChangedEventHandler value) |
| Override this method to change the default logic for determining if the event handler should be serialized. | |
| virtual void | OnPropertyChanged (string propertyName) |
| Call this method to raise the PropertyChanged event for a specific property. | |
| virtual void | OnMetaPropertyChanged (string propertyName) |
| virtual void | OnPropertyChanged (IPropertyInfo propertyInfo) |
| Call this method to raise the PropertyChanged event for a specific property. | |
| virtual void | OnIsDirtyChanged () |
| Call this method to raise the PropertyChanged event for all object properties. | |
| virtual void | OnUnknownPropertyChanged () |
| Call this method to raise the PropertyChanged event for all object properties. | |
| virtual void | OnIsDirtyChanging () |
| Call this method to raise the PropertyChanging event for all object properties. | |
| virtual void | OnUnknownPropertyChanging () |
| Call this method to raise the PropertyChanging event for all object properties. | |
| virtual void | OnPropertyChanging (string propertyName) |
| Call this method to raise the PropertyChanging event for a specific property. | |
| virtual void | OnPropertyChanging (IPropertyInfo propertyInfo) |
| Call this method to raise the PropertyChanging event for a specific property. | |
| virtual bool | ShouldHandlerSerialize (PropertyChangingEventHandler value) |
| Override this method to change the default logic for determining if the event handler should be serialized. | |
| Protected Member Functions inherited from Csla.Core.MobileObject | |
| virtual void | OnGetState (SerializationInfo info, StateMode mode) |
| Override this method to insert your field values into the MobileFormatter serialization stream. | |
| virtual void | OnSetState (SerializationInfo info, StateMode mode) |
| Override this method to retrieve your field values from the MobileFormatter serialization stream. | |
| virtual void | OnGetMetastate (BinaryWriter writer) |
| Override this method to write field values directly to a binary stream for metastate serialization. | |
| virtual void | OnSetMetastate (BinaryReader reader) |
| Override this method to read field values directly from a binary stream for metastate deserialization. | |
Static Protected Member Functions | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type objectType, PropertyInfo< P > info) |
| Indicates that the specified property belongs to the type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (PropertyInfo< P > info) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (string propertyName) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (Expression< Func< T, object > > propertyLambdaExpression) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (string propertyName, string? friendlyName) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (Expression< Func< T, object > > propertyLambdaExpression, string? friendlyName) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (string propertyName, string? friendlyName, P? defaultValue) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (Expression< Func< T, object > > propertyLambdaExpression, string? friendlyName, P? defaultValue) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (string propertyName, RelationshipTypes relationship) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (Expression< Func< T, object > > propertyLambdaExpression, RelationshipTypes relationship) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (string propertyName, string? friendlyName, P? defaultValue, RelationshipTypes relationship) |
| Indicates that the specified property belongs to the business object type. | |
| static PropertyInfo< P > | RegisterProperty<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] P > (Expression< Func< T, object > > propertyLambdaExpression, string? friendlyName, P? defaultValue, RelationshipTypes relationship) |
| Indicates that the specified property belongs to the business object type. | |
| static IMemberInfo | RegisterMethod (Type objectType, IMemberInfo info) |
| Indicates that the specified method belongs to the type. | |
| static MethodInfo | RegisterMethod (Type objectType, string methodName) |
| Indicates that the specified method belongs to the type. | |
| static MethodInfo | RegisterMethod (string methodName) |
| Registers a method for use in Authorization. | |
| static MethodInfo | RegisterMethod (Expression< Action< T > > methodLambdaExpression) |
| Registers the method. | |
Properties | |
| ApplicationContext | ApplicationContext [get, set] |
| Gets or sets the current ApplicationContext object. | |
| virtual bool | IsCanReadPropertyAuthorizationCheckDisabled = false [get] |
Gets or sets if CanReadProperty(IPropertyInfo) performs an authorization check or not. true means read is always allowed. false means an authorization check is always performed. | |
| BusinessRules | BusinessRules [get] |
| Provides access to the broken rules functionality. | |
| FieldDataManager | FieldManager [get] |
| Gets the PropertyManager object for this business object. | |
| virtual bool | IsBusy [get] |
| Gets a value indicating whether this object or any of its child objects are running an async operation. | |
| virtual bool | IsSelfBusy [get] |
| Gets a value indicating whether this object is running an async operation. | |
Events | |
| BusyChangedEventHandler? | BusyChanged [add, remove] |
| Event raised when the IsBusy property value has changed. | |
| EventHandler< Core.ErrorEventArgs >? | UnhandledAsyncException [add, remove] |
| Event raised when an exception occurs on a background thread during an asynchronous operation. | |
| Events inherited from Csla.Core.BindableBase | |
| PropertyChangedEventHandler? | PropertyChanged [add, remove] |
| Implements a serialization-safe PropertyChanged event. | |
| PropertyChangingEventHandler? | PropertyChanging [add, remove] |
| Implements a serialization-safe PropertyChanging event. | |
This is a base class from which readonly business classes can be derived.
This base class only supports data retrieve, not updating or deleting. Any business classes derived from this base class should only implement readonly properties.
| T | Type of the business object. |
| T | : | ReadOnlyBase<T> |
|
inlineprotectedvirtual |
Override this method to add per-type authorization rules for your type's properties.
AddSharedAuthorizationRules is automatically called by CSLA .NET when your object should associate per-type authorization roles with its properties.
|
inlinevirtual |
Returns true if the user is allowed to execute the specified method.
| method | Method to execute. |
| ArgumentNullException | method is null. |
|
inline |
Returns true if the user is allowed to execute the specified method.
| method | Method to execute. |
| throwOnFalse | Indicates whether a negative result should cause an exception. |
| ArgumentNullException | method is null. |
|
inlinevirtual |
Returns true if the user is allowed to execute the specified method.
| methodName | Name of the method to execute. |
| ArgumentException | methodName is null, string.Empty or only consists of white spaces. |
|
inlinevirtual |
Returns true if the user is allowed to read the calling property.
| property | Property to check. |
| ArgumentNullException | property is null. |
|
inline |
Returns true if the user is allowed to read the calling property.
| property | Property to read. |
| throwOnFalse | Indicates whether a negative result should cause an exception. |
| ArgumentNullException | property is null. |
|
inline |
|
inlineprotectedvirtual |
Called by the server-side DataPortal if an exception occurs during data access.
| e | The DataPortalContext object passed to the DataPortal. |
| ex | The Exception thrown during data access. |
|
inlineprotectedvirtual |
Called by the server-side DataPortal prior to calling the requested DataPortal_XYZ method.
| e | The DataPortalContext object passed to the DataPortal. |
|
inlineprotectedvirtual |
Called by the server-side DataPortal after calling the requested DataPortal_XYZ method.
| e | The DataPortalContext object passed to the DataPortal. |
|
inline |
Creates a clone of the object.
|
inlineprotectedvirtual |
Called by the server-side DataPortal if an exception occurs during data access.
| e | The DataPortalContext object passed to the DataPortal. |
| ex | The Exception thrown during data access. |
|
inlineprotectedvirtual |
Called by the server-side DataPortal prior to calling the requested DataPortal_xyz method.
| e | The DataPortalContext object passed to the DataPortal. |
|
inlineprotectedvirtual |
Called by the server-side DataPortal after calling the requested DataPortal_xyz method.
| e | The DataPortalContext object passed to the DataPortal. |
|
inlineprotectedvirtual |
Invoked after the object has been deserialized to allow derived classes to perform custom post-deserialization processing.
Override this method in a derived class to implement actions that should occur immediately after deserialization, such as initializing transient fields or validating object state. This method is called automatically during the deserialization process.
|
inlinevirtual |
Creates a clone of the object.
|
inlineprotectedvirtual |
Override this method to return a unique identifying value for this object.
|
inlineprotected |
Gets a property's value as a specified type.
| propertyInfo | PropertyInfo object containing property metadata. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value, first checking authorization.
| P | Type of the property. |
| field | The backing field for the property. |
| propertyName | The name of the property. |
| defaultValue | Value to be returned if the user is not authorized to read the property. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyName is null. |
|
inlineprotected |
Gets a property's value, first checking authorization.
| P | Type of the property. |
| field | The backing field for the property. |
| propertyName | The name of the property. |
| defaultValue | Value to be returned if the user is not authorized to read the property. |
| noAccess | True if an exception should be thrown when the user is not authorized to read this property. |
| ArgumentNullException | propertyName is null. |
|
inlineprotected |
Gets a property's managed field value, first checking authorization.
| P | Type of the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value as a specified type, first checking authorization.
| P | Type of the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
| noAccess | True if an exception should be thrown when the user is not authorized to read this property. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value, first checking authorization.
| P | Type of the property. |
| field | The backing field for the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value, first checking authorization.
| P | Type of the property. |
| field | The backing field for the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
| defaultValue | Value to be returned if the user is not authorized to read the property. |
| noAccess | True if an exception should be thrown when the user is not authorized to read this property. |
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value from the list of managed field values, first checking authorization, and converting the value to an appropriate type.
| F | Type of the field. |
| P | Type of the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value as a specified type, first checking authorization.
| F | Type of the field. |
| P | Type of the property. |
| field | The backing field for the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value as a specified type, first checking authorization.
| F | Type of the field. |
| P | Type of the property. |
| field | The backing field for the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
| noAccess | True if an exception should be thrown when the user is not authorized to read this property. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value from the list of managed field values, first checking authorization, and converting the value to an appropriate type.
| F | Type of the field. |
| P | Type of the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
| noAccess | True if an exception should be thrown when the user is not authorized to read this property. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | propertyInfo is null. |
|
inlineprotectedvirtual |
Override this method to set up event handlers so user code in a partial class can respond to events raised by generated code.
|
inlineprotected |
Lazily initializes a property and returns the resulting value.
| P | Type of the property. |
| property | PropertyInfo object containing property metadata. |
| valueGenerator | Method returning the new value. |
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | property or valueGenerator is null. |
|
inlineprotected |
Lazily initializes a property and returns the resulting value.
| P | Type of the property. |
| property | PropertyInfo object containing property metadata. |
| factory | Async method returning the new value. |
Note that the first value returned is almost certainly the defaultValue because the value is initialized asynchronously. The real value is provided later along with a PropertyChanged event to indicate the value has changed.
If the user is not authorized to read the property value, the defaultValue value is returned as a result.
| ArgumentNullException | property or property is null. |
|
inlineprotected |
Gets a property's value as a specified type.
| P | Type of the property. |
| property | PropertyInfo object containing property metadata. |
| valueGenerator | Method returning the new value. |
| ArgumentNullException | property or valueGenerator is null. |
|
inlineprotected |
Gets a property's value as a specified type.
| P | Type of the property. |
| property | PropertyInfo object containing property metadata. |
| factory | Async method returning the new value. |
| ArgumentNullException | property or factory is null. |
|
inlineprotectedvirtual |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
| 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 | propertyInfo is null. |
|
inlineprotected |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
| P | Type of the property. |
| 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 | propertyInfo is null. |
|
inlineprotected |
Load a property from an async method.
| R |
| property | |
| factory |
| ArgumentNullException | property or factory is null. |
|
inlineprotected |
Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change.
| 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 | propertyInfo is null. |
|
inlineprotected |
Marks the object as being busy (it is running an async operation).
|
inlineprotected |
Marks the object as being not busy (it is not running an async operation).
|
inlineprotectedvirtual |
Raises the BusyChanged event.
| args | Event arguments. |
| ArgumentNullException | args is null. |
|
inlineprotected |
Raises the BusyChanged event.
| propertyName | Name of the property that has changed. |
| busy | New busy value. |
| ArgumentNullException | propertyName is null. |
|
inlineprotectedvirtual |
Override this method to insert your child object references into the MobileFormatter serialization stream.
| info | Object containing the data to serialize. |
| formatter | Reference to MobileFormatter instance. Use this to convert child references to/from reference id values. |
Reimplemented from Csla.Core.MobileObject.
|
inlineprotectedvirtual |
Override this method to retrieve your child object references from the MobileFormatter serialization stream.
| info | Object containing the data to serialize. |
| formatter | Reference to MobileFormatter instance. Use this to convert child references to/from reference id values. |
Reimplemented from Csla.Core.MobileObject.
|
inlineprotectedvirtual |
Raises the UnhandledAsyncException event.
| error | Error arguments. |
| ArgumentNullException | error is null. |
|
inlineprotected |
Raises the UnhandledAsyncException event.
| originalSender | Original sender of the event. |
| error | Exception that occurred. |
| ArgumentNullException | originalSender or error is null. |
|
inlineprotected |
Gets a value indicating whether a lazy loaded property is currently being retrieved.
| propertyInfo | Property to check. |
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Creates an instance of the type.
|
inlineprotectedvirtual |
Gets a property's value as a specified type.
| propertyInfo | PropertyInfo object containing property metadata. |
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value as a specified type.
| P | Type of the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
| ArgumentNullException | propertyInfo is null. |
|
inlineprotected |
Gets a property's value from the list of managed field values, converting the value to an appropriate type.
| F | Type of the field. |
| P | Type of the property. |
| propertyInfo | PropertyInfo object containing property metadata. |
| ArgumentNullException | propertyInfo is null. |
|
inlinestaticprotected |
Registers the method.
| methodLambdaExpression | The method lambda expression. |
| ArgumentNullException | methodLambdaExpression is null. |
|
inlinestaticprotected |
Registers a method for use in Authorization.
| methodName | Method name from nameof() |
| ArgumentNullException | methodName is null. |
|
inlinestaticprotected |
Indicates that the specified method belongs to the type.
| objectType | Type of object to which the method belongs. |
| info | IMemberInfo object for the property. |
| ArgumentNullException | objectType or info is null. |
|
inlinestaticprotected |
Indicates that the specified method belongs to the type.
| objectType | Type of object to which the method belongs. |
| methodName | Name of the method. |
| ArgumentNullException | objectType or methodName is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the type.
| P | Type of property. |
| objectType | Type of object to which the property belongs. |
| info | PropertyInfo object for the property. |
| ArgumentNullException | objectType or info is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyLambdaExpression | Property Expression |
| ArgumentNullException | propertyLambdaExpression is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyLambdaExpression | Property Expression |
| relationship | Relationship with property value. |
| ArgumentNullException | propertyLambdaExpression is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyLambdaExpression | Property Expression |
| friendlyName | Friendly description for a property to be used in databinding |
| ArgumentNullException | propertyLambdaExpression is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyLambdaExpression | Property Expression |
| friendlyName | Friendly description for a property to be used in databinding |
| defaultValue | Default Value for the property |
| ArgumentNullException | propertyLambdaExpression is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyLambdaExpression | Property Expression |
| friendlyName | Friendly description for a property to be used in databinding |
| defaultValue | Default Value for the property |
| relationship | Relationship with property value. |
| ArgumentNullException | propertyLambdaExpression is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property. |
| info | PropertyInfo object for the property. |
| ArgumentNullException | info is null. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyName | Property name from nameof() |
| ArgumentException | propertyName is null, string.Empty or only consists of white spaces. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyName | Property name from nameof() |
| relationship | Relationship with property value. |
| ArgumentException | propertyName is null, string.Empty or only consists of white spaces. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyName | Property name from nameof() |
| friendlyName | Friendly description for a property to be used in databinding |
| ArgumentException | propertyName is null, string.Empty or only consists of white spaces. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyName | Property name from nameof() |
| friendlyName | Friendly description for a property to be used in databinding |
| defaultValue | Default Value for the property |
| ArgumentException | propertyName is null, string.Empty or only consists of white spaces. |
|
inlinestaticprotected |
Indicates that the specified property belongs to the business object type.
| P | Type of property |
| propertyName | Property name from nameof() |
| friendlyName | Friendly description for a property to be used in databinding |
| defaultValue | Default Value for the property |
| relationship | Relationship with property value. |
| ArgumentException | propertyName is null, string.Empty or only consists of white spaces. |
|
inline |
Returns a text representation of this object by returning the GetIdValue value in text form.
|
inline |
Await this method to ensure business object is not busy running async rules.
|
inline |
Waits for the object to become idle.
| ct | The cancellation token. |
|
inline |
Await this method to ensure business object is not busy running async rules.
| timeout | Timeout duration |
|
getsetprotected |
Gets or sets the current ApplicationContext object.
Implements Csla.Core.IUseApplicationContext.
|
getprotected |
Provides access to the broken rules functionality.
This property is used within your business logic so you can easily call the AddRule() method to associate business rules with your object's properties.
|
getprotected |
Gets the PropertyManager object for this business object.
|
get |
Gets a value indicating whether this object or any of its child objects are running an async operation.
|
getprotected |
Gets or sets if CanReadProperty(IPropertyInfo) performs an authorization check or not.
true means read is always allowed. false means an authorization check is always performed.
|
get |
Gets a value indicating whether this object is running an async operation.
|
addremove |
Event raised when the IsBusy property value has changed.
|
addremove |
Event raised when an exception occurs on a background thread during an asynchronous operation.