ObjectStateManager.GetRelationshipManager(Object) 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 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
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