다음을 통해 공유


IMutableEntityType.AddKey 메서드

정의

오버로드

AddKey(IMutableProperty)

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

AddKey(IReadOnlyList<IMutableProperty>)

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

AddKey(IMutableProperty)

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

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
override this.AddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Overridable Function AddKey (property As IMutableProperty) As IMutableKey

매개 변수

property
IMutableProperty

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

반환

새로 만든 키입니다.

적용 대상

AddKey(IReadOnlyList<IMutableProperty>)

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

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey AddKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function AddKey (properties As IReadOnlyList(Of IMutableProperty)) As IMutableKey

매개 변수

properties
IReadOnlyList<IMutableProperty>

대체 키를 구성하는 속성입니다.

반환

새로 만든 키입니다.

적용 대상