ObjectStateManager Class
Maintains object state and identity management for entity type instances and relationship instances.
Assembly: EntityFramework (in EntityFramework.dll)
| Name | Description | |
|---|---|---|
![]() | ObjectStateManager(MetadataWorkspace^) | Initializes a new instance of the ObjectStateManager class. |
| Name | Description | |
|---|---|---|
![]() | MetadataWorkspace | Gets the MetadataWorkspace associated with this state manager. |
| Name | Description | |
|---|---|---|
![]() | ChangeObjectState(Object^, EntityState) | Changes state of the ObjectStateEntry for a specific object to the specified entityState . |
![]() | ChangeRelationshipState(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. |
![]() | ChangeRelationshipState(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. |
![]() | ChangeRelationshipState<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. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectStateEntries(EntityState) | Returns a collection of ObjectStateEntry objects for objects or relationships with the given state. |
![]() | GetObjectStateEntry(EntityKey^) | Returns an ObjectStateEntry for the object or relationship entry with the specified key. |
![]() | GetObjectStateEntry(Object^) | Returns an ObjectStateEntry for the specified object. |
![]() | GetRelationshipManager(Object^) | Returns the RelationshipManager that is used by the specified object. |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetObjectStateEntry(EntityKey^, ObjectStateEntry^) | Tries to retrieve the corresponding ObjectStateEntry for the object or relationship with the specified EntityKey . |
![]() | TryGetObjectStateEntry(Object^, ObjectStateEntry^) | Tries to retrieve the corresponding ObjectStateEntry for the specified Object . |
![]() | TryGetRelationshipManager(Object^, RelationshipManager^) | Returns the RelationshipManager that is used by the specified object. |
| Name | Description | |
|---|---|---|
![]() | ObjectStateManagerChanged | 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.



