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

由外键关联的实体类型之一。

返回

与给定实体类型相关的实体类型。

适用于