Export (0) Print
Expand All

ObjectStateEntry Class

Represents either an entity, entity stub or relationship.

System.Object
  System.Data.Objects.ObjectStateEntry

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

public abstract class ObjectStateEntry : IEntityChangeTracker

The ObjectStateEntry type exposes the following members.

  NameDescription
Public propertyCurrentValuesGets the current property values of the object or relationship associated with this ObjectStateEntry.
Public propertyEntityGets the entity object.
Public propertyEntityKeyGets or sets the entity key.
Public propertyEntitySetGets the EntitySetBase for the object or relationship.
Public propertyIsRelationshipGets a value that indicates whether the ObjectStateEntry represents a relationship.
Public propertyObjectStateManagerGets the ObjectStateManager for the ObjectStateEntry.
Public propertyOriginalValuesGets the read-only version of original values of the object or relationship.
Public propertyRelationshipManagerGets the RelationshipManager instance for the object represented by entry.
Public propertyStateGets or sets the state of the ObjectStateEntry.
Top

  NameDescription
Public methodAcceptChangesAccepts the current values as original values.
Public methodApplyCurrentValuesSets the current values of the entry to match the property values of a supplied object.
Public methodApplyOriginalValuesSets the original values of the entry to match the property values of a supplied object.
Public methodChangeStateChanges state of the entry to the specified EntityState value.
Public methodDeleteMarks an entity as deleted.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetModifiedPropertiesReturns the names of an object’s properties that have changed since the last time SaveChanges was called.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetUpdatableOriginalValuesGets the updatable version of original values of the object associated with this ObjectStateEntry.
Public methodIsPropertyChangedUses 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.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRejectPropertyChangesRejects 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.
Public methodSetModifiedSets the state of the object or relationship to modify.
Public methodSetModifiedPropertyMarks the specified property as modified.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEntityChangeTracker.EntityComplexMemberChangedNotifies the state manager that a complex property has changed.
Explicit interface implemetationPrivate methodIEntityChangeTracker.EntityComplexMemberChangingNotifies the state manager that a complex property has a pending change.
Explicit interface implemetationPrivate methodIEntityChangeTracker.EntityMemberChangedNotifies the state manager that a property has changed.
Explicit interface implemetationPrivate methodIEntityChangeTracker.EntityMemberChangingNotifies the state manager that a property has a pending change.
Explicit interface implemetationPrivate propertyIEntityChangeTracker.EntityStateGets the EntityState for the ObjectStateEntry.
Top

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, 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.

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