다음을 통해 공유


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

외래 키와 관련된 엔터티 형식 중 하나입니다.

반환

지정된 형식과 관련된 엔터티 형식입니다.

적용 대상