Udostępnij za pośrednictwem


RelationalEntityTypeExtensions.SetJsonPropertyName Metoda

Definicja

Przeciążenia

SetJsonPropertyName(IMutableEntityType, String)

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

SetJsonPropertyName(IConventionEntityType, String, Boolean)

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

SetJsonPropertyName(IMutableEntityType, String)

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

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

Parametry

entityType
IMutableEntityType

Typ jednostki.

name
String

Nazwa do użycia.

Dotyczy

SetJsonPropertyName(IConventionEntityType, String, Boolean)

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

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

Parametry

entityType
IConventionEntityType

Typ jednostki.

name
String

Nazwa do użycia.

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana wartość.

Dotyczy