ObjectStateManager.GetRelationshipManager(Object) Method

Definition

Returns the RelationshipManager that is used by the specified object.

public virtual System.Data.Entity.Core.Objects.DataClasses.RelationshipManager GetRelationshipManager (object entity);
abstract member GetRelationshipManager : obj -> System.Data.Entity.Core.Objects.DataClasses.RelationshipManager
override this.GetRelationshipManager : obj -> System.Data.Entity.Core.Objects.DataClasses.RelationshipManager
Public Overridable Function GetRelationshipManager (entity As Object) As RelationshipManager

Parameters

entity
Object

The object for which to return the RelationshipManager.

Returns

The RelationshipManager for the specified object.

Exceptions

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

Applies to