다음을 통해 공유


IMutableEntityType.SetPrimaryKey 메서드

정의

오버로드

SetPrimaryKey(IMutableProperty)

이 엔터티 형식의 기본 키를 설정합니다.

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

이 엔터티 형식의 기본 키를 설정합니다.

SetPrimaryKey(IMutableProperty)

이 엔터티 형식의 기본 키를 설정합니다.

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

매개 변수

property
IMutableProperty

기본 키 속성입니다.

반환

새로 만든 키입니다.

적용 대상

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

이 엔터티 형식의 기본 키를 설정합니다.

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

매개 변수

properties
IReadOnlyList<IMutableProperty>

기본 키를 구성하는 속성입니다.

반환

새로 만든 키입니다.

적용 대상