ObjectStateManager.TryGetRelationshipManager Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework