ObjectStateEntry Class

ObjectStateEntry Class

.NET Framework (current version)
 

Represents either an entity, entity stub or relationship.

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

System.Object
  System.Data.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 or sets 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 or sets 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)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (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()

Gets the Type of the current instance.(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()

Creates a shallow copy of the current Object.(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()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityComplexMemberChanged(String, Object, String)

Notifies the state manager that a complex property has changed.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityComplexMemberChanging(String, Object, String)

Notifies the state manager that a complex property has a pending change.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityMemberChanged(String)

Notifies the state manager that a property has changed.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEntityChangeTracker.EntityMemberChanging(String)

Notifies the state manager that a property has a pending change.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIEntityChangeTracker.EntityState

Gets the EntityState for the ObjectStateEntry.

No content here will be updated; please do not add material here.

.NET Framework
Available since 3.5

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

Return to top
Show:
© 2016 Microsoft