ObjectStateManager Class

 

Maintains object state and identity management for entity type instances and relationship instances.

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

System.Object
  System.Data.Entity.Core.Objects.ObjectStateManager

[SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class ObjectStateManager

NameDescription
System_CAPS_pubmethodObjectStateManager(MetadataWorkspace)

Initializes a new instance of the ObjectStateManager class.

NameDescription
System_CAPS_pubpropertyMetadataWorkspace

Gets the MetadataWorkspace associated with this state manager.

NameDescription
System_CAPS_pubmethodChangeObjectState(Object, EntityState)

Changes state of the ObjectStateEntry for a specific object to the specified entityState .

System_CAPS_pubmethodChangeRelationshipState(Object, Object, String, EntityState)

Changes the state of the relationship between two entity objects that is specified based on the two related objects and the name of the navigation property.

System_CAPS_pubmethodChangeRelationshipState(Object, Object, String, String, EntityState)

Changes the state of the relationship between two entity objects that is specified based on the two related objects and the properties of the relationship.

System_CAPS_pubmethodChangeRelationshipState<TEntity>(TEntity, Object, Expression<Func<TEntity, Object>>, EntityState)

Changes the state of the relationship between two entity objects that is specified based on the two related objects and a LINQ expression that defines the navigation property.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectStateEntries(EntityState)

Returns a collection of ObjectStateEntry objects for objects or relationships with the given state.

System_CAPS_pubmethodGetObjectStateEntry(EntityKey)

Returns an ObjectStateEntry for the object or relationship entry with the specified key.

System_CAPS_pubmethodGetObjectStateEntry(Object)

Returns an ObjectStateEntry for the specified object.

System_CAPS_pubmethodGetRelationshipManager(Object)

Returns the RelationshipManager that is used by the specified object.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetObjectStateEntry(EntityKey, ObjectStateEntry)

Tries to retrieve the corresponding ObjectStateEntry for the object or relationship with the specified EntityKey .

System_CAPS_pubmethodTryGetObjectStateEntry(Object, ObjectStateEntry)

Tries to retrieve the corresponding ObjectStateEntry for the specified Object .

System_CAPS_pubmethodTryGetRelationshipManager(Object, RelationshipManager)

Returns the RelationshipManager that is used by the specified object.

NameDescription
System_CAPS_pubeventObjectStateManagerChanged

Occurs when entities are added to or removed from the state manager.

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