ObjectStateManager.TryGetRelationshipManager Method (Object, RelationshipManager)
Returns the RelationshipManager that is used by the specified object.
Assembly: EntityFramework (in EntityFramework.dll)
public virtual bool TryGetRelationshipManager( object entity, out RelationshipManager relationshipManager )
Parameters
- entity
-
Type:
System.Object
The object for which to return the RelationshipManager.
- relationshipManager
-
Type:
System.Data.Entity.Core.Objects.DataClasses.RelationshipManager
When this method returns, contains the RelationshipManager for the entity .
Return Value
Type: System.Booleantrue if a RelationshipManager instance was returned for the supplied entity ; otherwise false.