EditableObjectModelBase Members

The EditableObjectModelBase type exposes the following members.

Constructors


  Name Description
Public method EditableObjectModelBase
Initializes a new instance of the EditableObjectModelBase class.

Methods


  Name Description
Public method AcceptChanges
Marks all fields as unchanged and clears the IsChanged flag.
Public method AddHandler
Adds a weak event handler.
(Inherited from AbstractModelBase.)
Public method BeginEdit
Begins an edit on an object.
Public method CancelEdit
Discards changes since the last BeginEdit call.
Public method ChangedProperties
List of changed properties.
Public method ClearErrors
Clears the error collections and the HasErrors property
(Inherited from AbstractModelBase.)
Public method EndEdit
Pushes changes since the last BeginEdit or AddNew call into the underlying object.
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Protected method Get<(Of <<'(T>)>>)
Fetches a value, returning Default(T) if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method GetAllErrors
Returns a collection of all errors (object and property level).
(Inherited from AbstractModelBase.)
Protected method GetDefault<(Of <<'(T>)>>)
Fetches a value, using the default value it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method GetErrors()()()()
Returns a collection of object-level errors.
(Inherited from AbstractModelBase.)
Public method GetErrors(Nullable<(Of <<'(String>)>>))
Returns a collection of property-level errors.
(Inherited from AbstractModelBase.)
Public method GetHashCode (Inherited from Object.)
Protected method GetNew(String)
Fetches a string value, returning String.Empty if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method GetNew<(Of <<'(T>)>>)(String)
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method GetNew<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), String)
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method GetPreviousValue
Gets the previous value for the indicated property.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnErrorsChanged
Used to manually invoke the ErrorsChanged event.
(Inherited from AbstractModelBase.)
Protected method OnPropertyChanged
Triggers the PropertyChanged event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method OnPropertyChanging
Triggers the PropertyChanging event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method OnValidateObject
Override this method to add imperative validation at the object level.
(Inherited from AbstractModelBase.)
Protected method OnValidateProperty
Override this method to add imperative validation at the property level.
(Inherited from AbstractModelBase.)
Public method RejectChanges
Discards all pending changes and reverts to the values used the last time AcceptChanges was called.
Public method RemoveHandler
Removes a weak event handler.
(Inherited from AbstractModelBase.)
Protected method Set(Nullable<(Of <<'(Object>)>>), String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method Set<(Of <<'(T>)>>)(T, PropertyChangedEventHandler, String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method Set<(Of <<'(T>)>>)(T, ValueChanged<(Of <<'(T>)>>), String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Protected method Set<(Of <<'(T>)>>)(T, NotifyCollectionChangedEventHandler, String)
Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)
Public method ToString (Inherited from Object.)
Public method Validate
This forces the object to be completely revalidated.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)

Properties


  Name Description
Public property HasErrors
Returns True if there are any errors.
(Inherited from AbstractModelBase.)
Public property IsChanged
Returns True if any fields were modified since the last call to AcceptChanges. This does walks the object graph for changes in child objects as well.
Public property IsChangedLocal
Returns True if any fields were modified since the last call to AcceptChanges. This does not walk the object graph.
Protected property Properties
Returns the underlying property bag
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.)

Events


  Name Description
Public event ErrorsChanged
Raised when the errors collection has changed.
(Inherited from AbstractModelBase.)
Public event PropertyChanged
Occurs when a property value changes.
(Inherited from AbstractModelBase.)