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

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

返回

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

适用于