다음을 통해 공유


IReadOnlyEntityType.FindPrimaryKey 메서드

정의

이 엔터티 형식의 기본 키를 가져옵니다. 기본 키가 정의되지 않은 경우 를 반환 null 합니다.

public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey? FindPrimaryKey ();
abstract member FindPrimaryKey : unit -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
Public Function FindPrimaryKey () As IReadOnlyKey

반환

기본 키이거나 null , 정의되지 않은 경우 입니다.

적용 대상