Share via


EntityTypeExtensions.FindKey(IEntityType, IProperty) 메서드

정의

지정된 속성에 정의된 기본 또는 대체 키를 가져옵니다. 지정된 속성에 대해 키가 정의되지 않은 경우 를 반환 null 합니다.

public static Microsoft.EntityFrameworkCore.Metadata.IKey FindKey (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member FindKey : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
<Extension()>
Public Function FindKey (entityType As IEntityType, property As IProperty) As IKey

매개 변수

entityType
IEntityType

엔터티 형식입니다.

property
IProperty

키가 정의된 속성입니다.

반환

키가 정의되지 않은 경우 또는 null입니다.

적용 대상