다음을 통해 공유


CosmosEntityTypeExtensions.SetPartitionKeyPropertyName 메서드

정의

오버로드

SetPartitionKeyPropertyName(IMutableEntityType, String)

파티션 키 키를 저장하는 데 사용되는 속성의 이름을 설정합니다.

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

파티션 키를 저장하는 데 사용되는 속성의 이름을 설정합니다.

SetPartitionKeyPropertyName(IMutableEntityType, String)

파티션 키 키를 저장하는 데 사용되는 속성의 이름을 설정합니다.

public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetPartitionKeyPropertyName (entityType As IMutableEntityType, name As String)

매개 변수

entityType
IMutableEntityType

파티션 키 속성 이름을 설정할 엔터티 형식입니다.

name
String

설정할 이름입니다.

적용 대상

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

파티션 키를 저장하는 데 사용되는 속성의 이름을 설정합니다.

public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
public static string? SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetPartitionKeyPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetPartitionKeyPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String

매개 변수

entityType
IConventionEntityType

파티션 키 속성 이름을 설정할 엔터티 형식입니다.

name
String

설정할 이름입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

적용 대상