Share via


ObjectStateManager.TryGetRelationshipManager Method

Definition

Returns the RelationshipManager that is used by the specified object.

public virtual bool TryGetRelationshipManager (object entity, out System.Data.Entity.Core.Objects.DataClasses.RelationshipManager relationshipManager);
abstract member TryGetRelationshipManager : obj *  -> bool
override this.TryGetRelationshipManager : obj *  -> bool
Public Overridable Function TryGetRelationshipManager (entity As Object, ByRef relationshipManager As RelationshipManager) As Boolean

Parameters

entity
Object

The object for which to return the RelationshipManager.

relationshipManager
RelationshipManager

When this method returns, contains the RelationshipManager for the entity .

Returns

true if a RelationshipManager instance was returned for the supplied entity ; otherwise false.

Applies to