MutableForeignKeyExtensions.GetRelatedEntityType Method

Definition

Gets the entity type related to the given one.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetRelatedEntityType (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function GetRelatedEntityType (foreignKey As IMutableForeignKey, entityType As IMutableEntityType) As IMutableEntityType

Parameters

foreignKey
IMutableForeignKey

The foreign key.

entityType
IMutableEntityType

One of the entity types related by the foreign key.

Returns

The entity type related to the given one.

Applies to