ObjectStateEntry Class
.NET Framework 4.5
Represents either an entity, entity stub or relationship.
Namespace: System.Data.Objects
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The ObjectStateEntry type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CurrentValues | Gets the current property values of the object or relationship associated with this ObjectStateEntry. |
![]() | Entity | Gets the entity object. |
![]() | EntityKey | Gets or sets the entity key. |
![]() | EntitySet | Gets the EntitySetBase for the object or relationship. |
![]() | IsRelationship | Gets a value that indicates whether the ObjectStateEntry represents a relationship. |
![]() | ObjectStateManager | Gets the ObjectStateManager for the ObjectStateEntry. |
![]() | OriginalValues | Gets the read-only version of original values of the object or relationship. |
![]() | RelationshipManager | Gets the RelationshipManager instance for the object represented by entry. |
![]() | State | Gets or sets the state of the ObjectStateEntry. |
| Name | Description | |
|---|---|---|
![]() | AcceptChanges | Accepts the current values as original values. |
![]() | ApplyCurrentValues | Sets the current values of the entry to match the property values of a supplied object. |
![]() | ApplyOriginalValues | Sets the original values of the entry to match the property values of a supplied object. |
![]() | ChangeState | Changes state of the entry to the specified EntityState value. |
![]() | Delete | Marks an entity as deleted. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetModifiedProperties | Returns the names of an object’s properties that have changed since the last time SaveChanges was called. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUpdatableOriginalValues | Gets the updatable version of original values of the object associated with this ObjectStateEntry. |
![]() | IsPropertyChanged | Uses DetectChanges to determine whether or not the current value of the property with the given name is different from its original value. Note that this may be different from the property being marked as modified since a property which has not changed can still be marked as modified. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RejectPropertyChanges | Rejects any changes made to the property with the given name since the property was last loaded, attached, saved, or changes were accepted. The orginal value of the property is stored and the property will no longer be marked as modified. |
![]() | SetModified | Sets the state of the object or relationship to modify. |
![]() | SetModifiedProperty | Marks the specified property as modified. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEntityChangeTracker.EntityComplexMemberChanged | Notifies the state manager that a complex property has changed. |
![]() ![]() | IEntityChangeTracker.EntityComplexMemberChanging | Notifies the state manager that a complex property has a pending change. |
![]() ![]() | IEntityChangeTracker.EntityMemberChanged | Notifies the state manager that a property has changed. |
![]() ![]() | IEntityChangeTracker.EntityMemberChanging | Notifies the state manager that a property has a pending change. |
![]() ![]() | IEntityChangeTracker.EntityState | Gets the EntityState for the ObjectStateEntry. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

