Share via


IRelatedEnd Interface

Definition

Represents one end of a relationship.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public interface IRelatedEnd
type IRelatedEnd = interface
Public Interface IRelatedEnd
Derived
Attributes

Properties

IsLoaded

Gets or sets a value indicating whether the entity (for an EntityReference or all entities in the collection (for an EntityCollection<TEntity> have been loaded from the database.

RelationshipName

Gets the name of the relationship in which this related end participates.

RelationshipSet

Returns a reference to the metadata for the related end.

SourceRoleName

Gets the role name at the source end of the relationship.

TargetRoleName

Gets the role name at the target end of the relationship.

Methods

Add(IEntityWithRelationships)

Adds an object to the related end.

Add(Object)

Adds an object to the related end.

Attach(IEntityWithRelationships)

Defines a relationship between two attached objects.

Attach(Object)

Defines a relationship between two attached objects.

CreateSourceQuery()

Returns an IEnumerable that represents the objects that belong to the related end.

GetEnumerator()

Returns an IEnumerator that iterates through the collection of related objects.

Load()

Loads the related object or objects into this related end with the default merge option.

Load(MergeOption)

Loads the related object or objects into the related end with the specified merge option.

LoadAsync(CancellationToken)

Asynchronously loads the related object or objects into this related end with the default merge option.

LoadAsync(MergeOption, CancellationToken)

Asynchronously loads the related object or objects into the related end with the specified merge option.

Remove(IEntityWithRelationships)

Removes an object from the collection of objects at the related end.

Remove(Object)

Removes an object from the collection of objects at the related end.

Applies to