다음을 통해 공유


MutableEntityTypeExtensions.AddKey 메서드

정의

이 엔터티 형식에 새 대체 키를 추가합니다.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
<Extension()>
Public Function AddKey (entityType As IMutableEntityType, property As IMutableProperty) As IMutableKey

매개 변수

entityType
IMutableEntityType

엔터티 형식입니다.

property
IMutableProperty

대체 키로 사용할 속성입니다.

반환

새로 만든 키입니다.

적용 대상