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

外鍵相關的其中一個實體類型。

傳回

與指定實體類型相關的實體類型。

適用於