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

外部キーに関連するエンティティ型の 1 つ。

戻り値

指定されたエンティティに関連するエンティティ型。

適用対象