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


IConventionForeignKey.GetRelatedEntityType(IReadOnlyEntityType) Метод

Определение

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType GetRelatedEntityType (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
abstract member GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
override this.GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Overridable Function GetRelatedEntityType (entityType As IReadOnlyEntityType) As IConventionEntityType

Параметры

entityType
IReadOnlyEntityType

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

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

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

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