다음을 통해 공유


MutableEntityTypeExtensions.GetOrAddKey 메서드

정의

오버로드

GetOrAddKey(IMutableEntityType, IMutableProperty)

속성에 정의된 기존 대체 키를 가져오거나 아직 정의되지 않은 경우 새 키를 만듭니다.

GetOrAddKey(IMutableEntityType, IReadOnlyList<IMutableProperty>)

속성 집합에 정의된 기존 대체 키를 가져오거나 아직 정의되지 않은 경우 새 키를 만듭니다.

GetOrAddKey(IMutableEntityType, IMutableProperty)

속성에 정의된 기존 대체 키를 가져오거나 아직 정의되지 않은 경우 새 키를 만듭니다.

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

매개 변수

entityType
IMutableEntityType

대체 키를 얻거나 만들 엔터티 형식입니다.

property
IMutableProperty

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

반환

기존 또는 새로 만든 대체 키입니다.

적용 대상

GetOrAddKey(IMutableEntityType, IReadOnlyList<IMutableProperty>)

속성 집합에 정의된 기존 대체 키를 가져오거나 아직 정의되지 않은 경우 새 키를 만듭니다.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableKey GetOrAddKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
static member GetOrAddKey : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
<Extension()>
Public Function GetOrAddKey (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty)) As IMutableKey

매개 변수

entityType
IMutableEntityType

대체 키를 얻거나 만들 엔터티 형식입니다.

properties
IReadOnlyList<IMutableProperty>

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

반환

기존 또는 새로 만든 대체 키입니다.

적용 대상