ChangeTrackingModelBase Members
The ChangeTrackingModelBase type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
|
ChangeTrackingModelBase |
This ModelBase tracks which fields have changed since the last time Checkpoint or Revert was called.
|
Methods
| Name | Description | |
|---|---|---|
|
|
AcceptChanges |
Marks all fields as unchanged and clears the IsChanged flag.
|
|
|
AddHandler |
Adds a weak event handler.
(Inherited from AbstractModelBase.) |
|
|
ChangedProperties |
List of changed properties.
|
|
|
ClearErrors |
Clears the error collections and the HasErrors property
(Inherited from AbstractModelBase.) |
|
|
Equals(System.Object) | (Inherited from Object.) |
|
|
Finalize | (Inherited from Object.) |
|
|
Get<(Of <<'(T>)>>) |
Fetches a value, returning Default(T) if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
GetAllErrors |
Returns a collection of all errors (object and property level).
(Inherited from AbstractModelBase.) |
|
|
GetDefault<(Of <<'(T>)>>) |
Fetches a value, using the default value it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
GetErrors()()()() |
Returns a collection of object-level errors.
(Inherited from AbstractModelBase.) |
|
|
GetErrors(Nullable<(Of <<'(String>)>>)) |
Returns a collection of property-level errors.
(Inherited from AbstractModelBase.) |
|
|
GetHashCode | (Inherited from Object.) |
|
|
GetNew(String) |
Fetches a string value, returning String.Empty if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
GetNew<(Of <<'(T>)>>)(String) |
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
GetNew<(Of <<'(T>)>>)(Func<(Of <<'(T>)>>), String) |
Fetches a value, creating it if it doesn't exist.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
GetPreviousValue |
Gets the previous value for the indicated property.
|
|
|
GetType | (Inherited from Object.) |
|
|
MemberwiseClone | (Inherited from Object.) |
|
|
OnDeserialized |
Called after the object is deserialized.
|
|
|
OnErrorsChanged |
Used to manually invoke the ErrorsChanged event.
(Inherited from AbstractModelBase.) |
|
|
OnPropertyChanged |
Triggers the PropertyChanged event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
OnPropertyChanging |
Triggers the PropertyChanging event.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
|
|
OnValidateObject |
Override this method to add imperative validation at the object level.
(Inherited from AbstractModelBase.) |
|
|
OnValidateProperty |
Override this method to add imperative validation at the property level.
(Inherited from AbstractModelBase.) |
|
|
RejectChanges |
Discards all pending changes and reverts to the values used the last time AcceptChanges was called.
|
|
|
RemoveHandler |
Removes a weak event handler.
(Inherited from AbstractModelBase.) |
|
|
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>)>)>.) |
|
|
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>)>)>.) |
|
|
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>)>)>.) |
|
|
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>)>)>.) |
|
|
ToString | (Inherited from Object.) |
|
|
Validate |
This forces the object to be completely revalidated.
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
Properties
| Name | Description | |
|---|---|---|
|
|
HasErrors |
Returns True if there are any errors.
(Inherited from AbstractModelBase.) |
|
|
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.
|
|
|
IsChangedLocal |
Returns True if any fields were modified since the last call to AcceptChanges. This does not walk the object graph.
|
|
|
Properties |
Returns the underlying property bag
(Inherited from AbstractModelBase<(Of <(<'TPropertyTracking>)>)>.) |
Events
| Name | Description | |
|---|---|---|
|
|
ErrorsChanged |
Raised when the errors collection has changed.
(Inherited from AbstractModelBase.) |
|
|
PropertyChanged |
Occurs when a property value changes.
(Inherited from AbstractModelBase.) |

