Interface that describes an Entity.
Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax
public interface IEntity : IStructuralObject, INotifyDataErrorInfo, INotifyPropertyChanged, IEditableObject, IRevertibleChangeTracking, IChangeTracking, IComparable
The IEntity type exposes the following members.
Methods
Name | Description | |
---|---|---|
AcceptChanges | Resets the object’s state to unchanged by accepting the modifications. (Inherited from IChangeTracking.) | |
BeginEdit | Begins an edit on an object. (Inherited from IEditableObject.) | |
CancelEdit | Discards changes since the last BeginEdit call. (Inherited from IEditableObject.) | |
CompareTo | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. (Inherited from IComparable.) | |
EndEdit | (Inherited from IEditableObject.) | |
GetErrors | Gets the validation errors for a specified property or for the entire entity. (Inherited from INotifyDataErrorInfo.) | |
Initialize |
Method that is automatically called after the materialization of any
IEntity or IComplexObject after being retrieved from a remote data service.
(Inherited from IStructuralObject.) | |
RejectChanges | Resets the object’s state to unchanged by rejecting the modifications. (Inherited from IRevertibleChangeTracking.) |
Extension Methods
Name | Description | |
---|---|---|
GetStructuralAspect |
Returns either a EntityAspect or ComplexAspect for the associated IStructuralObject.
(Defined by StructuralObjectExtensions.) |
Properties
Name | Description | |
---|---|---|
EntityAspect |
Returns the EntityAspect associated with this IEntity.
| |
HasErrors | Gets a value that indicates whether the entity has validation errors. (Inherited from INotifyDataErrorInfo.) | |
IsChanged | Gets the object's changed status. (Inherited from IChangeTracking.) |
Events
Name | Description | |
---|---|---|
ErrorsChanged | Occurs when the validation errors have changed for a property or for the entire entity. (Inherited from INotifyDataErrorInfo.) | |
PropertyChanged | Occurs when a property value changes. (Inherited from INotifyPropertyChanged.) |
See Also