EntityObject.IEntityWithRelationships.RelationshipManager Property

Definition

Gets the relationship manager used by this object.

System.Data.Objects.DataClasses.RelationshipManager System.Data.Objects.DataClasses.IEntityWithRelationships.RelationshipManager { get; }

Property Value

The RelationshipManager used by this object.

Implements

Remarks

IEntityWithRelationships.RelationshipManager returns a RelationshipManager used by this object. Object Services uses the relationship manager to provide access to related objects.

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 Create to create a new RelationshipManager when needed. After being created, it is expected that this object will be stored on the entity and will be provided through this property.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also