Provides entity services to a IEntity.
Inheritance Hierarchy
Breeze.SharpStructuralAspect
Breeze.SharpEntityAspect
Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax
public sealed class EntityAspect : StructuralAspect, IEditableObject, IRevertibleChangeTracking, IChangeTracking, INotifyPropertyChanged, INotifyDataErrorInfo, IComparable
The EntityAspect type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | AcceptChanges | |
![]() | Attach |
Adds a newly created entity to its associated EntityManager.
|
![]() | Delete |
Marks this Entity for deletion; the EntityState becomes "Deleted".
|
![]() | Detach |
Removes the entity from the EntityManager cache.
|
![]() | Equals | (Overrides ObjectEquals(Object).) |
![]() | ForceEntityPropertyChanged |
Forces a PropertyChanged event to be fired.
|
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValidationErrors | (Overrides StructuralAspectGetValidationErrors(String).) |
![]() | GetValue(String) | (Inherited from StructuralAspect.) |
![]() | GetValue(StructuralProperty) | (Inherited from StructuralAspect.) |
![]() | GetValue(DataProperty, EntityVersion) | (Inherited from StructuralAspect.) |
![]() | HasChanges |
Determines whether this entity has any pending changes.
|
![]() | LoadNavigationProperty(String) | |
![]() | LoadNavigationProperty(NavigationProperty) | |
![]() | RejectChanges |
Rejects (rolls back) all changes to this Entity since it was queried or had AcceptChanges called on it.
|
![]() | SetValue(String, Object) | (Overrides StructuralAspectSetValue(String, Object).) |
![]() | SetValue(StructuralProperty, Object) | |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Validate | (Inherited from StructuralAspect.) |
![]() | ValidateProperty | (Inherited from StructuralAspect.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() | AllErrors |
'Magic' string that can be used to return all errors from GetErrors(String).
|
Properties
Name | Description | |
---|---|---|
![]() | Entity |
The Entity that this aspect is associated with.
|
![]() | EntityKey |
Returns the EntityKey for the associated Entity.
|
![]() | EntityManager |
The EntityManager that manages this entity.
|
![]() | EntityState |
Returns the EntityState for the associated Entity.
(Overrides StructuralAspectEntityState.) |
![]() | EntityType | |
![]() | EntityVersion |
Returns the EntityVersion for the associated Entity.
(Overrides StructuralAspectEntityVersion.) |
![]() | HasTemporaryKey |
Whether the associated Entity has a 'temporary' EntityKey. i.e. one that will change after
a successful save.
|
![]() | Initialized | (Inherited from StructuralAspect.) |
![]() | IsAttached |
Whether this entity is attached to an EntityManager.
|
![]() | IsChanged |
Whether any changes have been made to this entity.
|
![]() | IsDetached |
Whether this entity is detached from an EntityManager.
|
![]() | IsNullEntity |
Returns whether the current instance is a null entity.
|
![]() | OriginalValuesMap | (Inherited from StructuralAspect.) |
![]() | PreproposedValuesMap | (Inherited from StructuralAspect.) |
![]() | StructuralType |
The StructuralType associated with this Entity.
(Overrides StructuralAspectStructuralType.) |
![]() | ValidationErrors |
Events
Name | Description | |
---|---|---|
![]() | EntityPropertyChanged |
Fired whenever a property value on this Entity changes.
|
![]() | PropertyChanged |
Properties on the EntityAspect that are subject to changed
and therefore available via the PropertyChanged notification are
EntityState, EntityKey, IsChanged, HasErrors, and SavingErrorMessage
|
Remarks
See Also