Język

RelationalComplexPropertyExtensions.SetJsonPropertyName Metoda

Definicja

Przeciążenia

Nazwisko Opis
SetJsonPropertyName(IMutableComplexProperty, String)

Ustawia wartość nazwy właściwości JSON używanej dla danej złożonej właściwości jednostki zamapowanej na kolumnę JSON.

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Ustawia wartość nazwy właściwości JSON używanej dla danej złożonej właściwości jednostki zamapowanej na kolumnę JSON.

SetJsonPropertyName(IMutableComplexProperty, String)

Źródło:
RelationalComplexPropertyExtensions.cs
Źródło:
RelationalComplexPropertyExtensions.cs

Ustawia wartość nazwy właściwości JSON używanej dla danej złożonej właściwości jednostki zamapowanej na kolumnę 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)

Parametry

complexProperty
IMutableComplexProperty

Właściwość złożona.

name
String

Nazwa, która ma być używana.

Dotyczy

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Źródło:
RelationalComplexPropertyExtensions.cs
Źródło:
RelationalComplexPropertyExtensions.cs

Ustawia wartość nazwy właściwości JSON używanej dla danej złożonej właściwości jednostki zamapowanej na kolumnę 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

Parametry

complexProperty
IConventionComplexProperty

Właściwość złożona.

name
String

Nazwa, która ma być używana.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Skonfigurowana wartość.

Dotyczy