다음을 통해 공유


RuntimeModelConvention.GetForeignKey(IForeignKey, RuntimeEntityType) 메서드

정의

읽기 최적화 모델에서 해당 외래 키를 가져옵니다.

protected virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey GetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType entityType);
abstract member GetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
override this.GetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
Protected Overridable Function GetForeignKey (foreignKey As IForeignKey, entityType As RuntimeEntityType) As RuntimeForeignKey

매개 변수

foreignKey
IForeignKey

원래 외래 키입니다.

entityType
RuntimeEntityType

선언 엔터티 형식입니다.

반환

해당 읽기 최적화 외래 키입니다.

적용 대상