ObjectStateEntry Class

 

Represents either a entity, entity stub or relationship

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Core.Objects.ObjectStateEntry

public abstract class ObjectStateEntry : IEntityChangeTracker

NameDescription
System_CAPS_pubpropertyCurrentValues

Gets the current property values of the object or relationship associated with this ObjectStateEntry .

System_CAPS_pubpropertyEntity

Gets the entity object.

System_CAPS_pubpropertyEntityKey

Gets the entity key.

System_CAPS_pubpropertyEntitySet

Gets the EntitySetBase for the object or relationship.

System_CAPS_pubpropertyIsRelationship

Gets a value that indicates whether the ObjectStateEntry represents a relationship.

System_CAPS_pubpropertyObjectStateManager

Gets the ObjectStateManager for the ObjectStateEntry .

System_CAPS_pubpropertyOriginalValues

Gets the read-only version of original values of the object or relationship.

System_CAPS_pubpropertyRelationshipManager

Gets the RelationshipManager instance for the object represented by entry.

System_CAPS_pubpropertyState

Gets the state of the ObjectStateEntry.

NameDescription
System_CAPS_pubmethodAcceptChanges()

Accepts the current values as original values.

System_CAPS_pubmethodApplyCurrentValues(Object)

Sets the current values of the entry to match the property values of a supplied object.

System_CAPS_pubmethodApplyOriginalValues(Object)

Sets the original values of the entry to match the property values of a supplied object.

System_CAPS_pubmethodChangeState(EntityState)

Changes state of the entry to the specified EntityState value.

System_CAPS_pubmethodDelete()

Marks an entity as deleted.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetModifiedProperties()

Returns the names of an object’s properties that have changed since the last time SaveChanges was called.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUpdatableOriginalValues()

Gets the updatable version of original values of the object associated with this ObjectStateEntry .

System_CAPS_pubmethodIsPropertyChanged(String)

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.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRejectPropertyChanges(String)

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.

System_CAPS_pubmethodSetModified()

Sets the state of the object or relationship to modify.

System_CAPS_pubmethodSetModifiedProperty(String)

Marks the specified property as modified.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityComplexMemberChanged(String, Object, String)

Used to report that a complex property has been changed The property value that was cached during EntityMemberChanging is now added to OriginalValues

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityComplexMemberChanging(String, Object, String)

Used to report that a complex property is about to change The current value of the specified property is cached when this method is called.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityMemberChanged(String)

Used to report that a scalar entity property has been changed The property value that was cached during EntityMemberChanging is now added to OriginalValues

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityMemberChanging(String)

Used to report that a scalar entity property is about to change The current value of the specified property is cached when this method is called.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.