Bahasa

RelationalComplexPropertyExtensions.SetJsonPropertyName Metode

Definisi

Overload

Nama Deskripsi
SetJsonPropertyName(IMutableComplexProperty, String)

Mengatur nilai nama properti JSON yang digunakan untuk properti kompleks tertentu dari entitas yang dipetakan ke kolom JSON.

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Mengatur nilai nama properti JSON yang digunakan untuk properti kompleks tertentu dari entitas yang dipetakan ke kolom JSON.

SetJsonPropertyName(IMutableComplexProperty, String)

Sumber:
RelationalComplexPropertyExtensions.cs
Sumber:
RelationalComplexPropertyExtensions.cs

Mengatur nilai nama properti JSON yang digunakan untuk properti kompleks tertentu dari entitas yang dipetakan ke kolom JSON.

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

Parameter

complexProperty
IMutableComplexProperty

Properti kompleks.

name
String

Nama yang akan digunakan.

Berlaku untuk

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Sumber:
RelationalComplexPropertyExtensions.cs
Sumber:
RelationalComplexPropertyExtensions.cs

Mengatur nilai nama properti JSON yang digunakan untuk properti kompleks tertentu dari entitas yang dipetakan ke kolom JSON.

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

Parameter

complexProperty
IConventionComplexProperty

Properti kompleks.

name
String

Nama yang akan digunakan.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk