Поделиться через


ForeignKeyExtensions.GetRelatedEntityType(IForeignKey, IEntityType) Метод

Определение

Возвращает тип сущности, связанный с данным типом.

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

Параметры

foreignKey
IForeignKey

Внешний ключ.

entityType
IEntityType

Один из типов сущностей, связанных внешним ключом.

Возвращаемое значение

Тип сущности, связанный с данным типом.

Применяется к