ObjectStateManager.GetRelationshipManager Method (Object)

 

Returns the RelationshipManager that is used by the specified object.

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

public virtual RelationshipManager GetRelationshipManager(
	object entity
)

Parameters

entity
Type: System.Object

The object for which to return the RelationshipManager.

Exception Condition
InvalidOperationException

The entity does not implement IEntityWithRelationships and is not tracked by this ObjectStateManager