Share via


IEntityWithRelationships.RelationshipManager Property

Definition

Returns the relationship manager that manages relationships for an instance of an entity type.

public System.Data.Entity.Core.Objects.DataClasses.RelationshipManager RelationshipManager { get; }
member this.RelationshipManager : System.Data.Entity.Core.Objects.DataClasses.RelationshipManager
Public ReadOnly Property RelationshipManager As RelationshipManager

Property Value

The RelationshipManager for this entity.

Remarks

Classes that expose relationships must implement this property by constructing and setting RelationshipManager in their constructor. The implementation of this property should use the static method RelationshipManager.Create to create a new RelationshipManager when needed. Once created, it is expected that this object will be stored on the entity and will be provided through this property.

Applies to