EntityAspect Class Breeze.sharp
Provides entity services to a IEntity.
Inheritance Hierarchy

SystemObject
  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

  NameDescription
Public methodAcceptChanges
Public methodAttach
Adds a newly created entity to its associated EntityManager.
Public methodDelete
Marks this Entity for deletion; the EntityState becomes "Deleted".
Public methodDetach
Removes the entity from the EntityManager cache.
Public methodEquals (Overrides ObjectEquals(Object).)
Public methodForceEntityPropertyChanged
Forces a PropertyChanged event to be fired.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValidationErrors (Overrides StructuralAspectGetValidationErrors(String).)
Public methodGetValue(String) (Inherited from StructuralAspect.)
Public methodGetValue(StructuralProperty) (Inherited from StructuralAspect.)
Public methodGetValue(DataProperty, EntityVersion) (Inherited from StructuralAspect.)
Public methodHasChanges
Determines whether this entity has any pending changes.
Public methodLoadNavigationProperty(String)
Public methodLoadNavigationProperty(NavigationProperty)
Public methodRejectChanges
Rejects (rolls back) all changes to this Entity since it was queried or had AcceptChanges called on it.
Public methodSetValue(String, Object) (Overrides StructuralAspectSetValue(String, Object).)
Public methodSetValue(StructuralProperty, Object)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate (Inherited from StructuralAspect.)
Public methodValidateProperty (Inherited from StructuralAspect.)
Top
Fields

  NameDescription
Public fieldStatic memberAllErrors
'Magic' string that can be used to return all errors from GetErrors(String).
Top
Properties

  NameDescription
Public propertyEntity
The Entity that this aspect is associated with.
Public propertyEntityKey
Returns the EntityKey for the associated Entity.
Public propertyEntityManager
The EntityManager that manages this entity.
Public propertyEntityState
Returns the EntityState for the associated Entity.
(Overrides StructuralAspectEntityState.)
Public propertyEntityType
Public propertyEntityVersion
Returns the EntityVersion for the associated Entity.
(Overrides StructuralAspectEntityVersion.)
Public propertyHasTemporaryKey
Whether the associated Entity has a 'temporary' EntityKey. i.e. one that will change after a successful save.
Public propertyInitialized (Inherited from StructuralAspect.)
Public propertyIsAttached
Whether this entity is attached to an EntityManager.
Public propertyIsChanged
Whether any changes have been made to this entity.
Public propertyIsDetached
Whether this entity is detached from an EntityManager.
Public propertyIsNullEntity
Returns whether the current instance is a null entity.
Public propertyOriginalValuesMap (Inherited from StructuralAspect.)
Public propertyPreproposedValuesMap (Inherited from StructuralAspect.)
Public propertyStructuralType
The StructuralType associated with this Entity.
(Overrides StructuralAspectStructuralType.)
Public propertyValidationErrors
Top
Events

  NameDescription
Public eventEntityPropertyChanged
Fired whenever a property value on this Entity changes.
Public eventPropertyChanged
Properties on the EntityAspect that are subject to changed and therefore available via the PropertyChanged notification are EntityState, EntityKey, IsChanged, HasErrors, and SavingErrorMessage
Top
Remarks

The EntityAspect implements interfaces to support editing, change tracking and change notification. One instance of the EntityAspect class is associated with each persistable entity within a domain model.
See Also

Reference