ObjectStateManager.GetRelationshipManager Method (Object)
Returns the RelationshipManager that is used by the specified object.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- entity
-
Type:
System.Object
The object for which to return the RelationshipManager.
Return Value
Type: System.Data.Entity.Core.Objects.DataClasses.RelationshipManagerThe RelationshipManager for the specified object.
Exception | Condition |
---|---|
InvalidOperationException | The entity does not implement IEntityWithRelationships and is not tracked by this ObjectStateManager |