다음을 통해 공유


CosmosPropertyExtensions.SetJsonPropertyName 메서드

정의

오버로드

SetJsonPropertyName(IMutableProperty, String)

Cosmos를 대상으로 할 때 속성이 매핑되는 속성 이름을 설정합니다.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Cosmos를 대상으로 할 때 속성이 매핑되는 속성 이름을 설정합니다.

SetJsonPropertyName(IMutableProperty, String)

Cosmos를 대상으로 할 때 속성이 매핑되는 속성 이름을 설정합니다.

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

매개 변수

property
IMutableProperty

속성입니다.

name
String

설정할 이름입니다.

적용 대상

SetJsonPropertyName(IConventionProperty, String, Boolean)

Cosmos를 대상으로 할 때 속성이 매핑되는 속성 이름을 설정합니다.

public static string SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string? SetJsonPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String

매개 변수

property
IConventionProperty

속성입니다.

name
String

설정할 이름입니다.

fromDataAnnotation
Boolean

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

반환

구성된 값입니다.

적용 대상