Share via


RelationalEntityTypeExtensions.SetJsonPropertyName Metodo

Definizione

Overload

SetJsonPropertyName(IMutableEntityType, String)

Imposta il valore del nome della proprietà JSON usato per l'entità specificata mappata a una colonna JSON.

SetJsonPropertyName(IConventionEntityType, String, Boolean)

Imposta il valore del nome della proprietà JSON usato per l'entità specificata mappata a una colonna JSON.

SetJsonPropertyName(IMutableEntityType, String)

Imposta il valore del nome della proprietà JSON usato per l'entità specificata mappata a una colonna 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)

Parametri

entityType
IMutableEntityType

Tipo di entità.

name
String

Nome da utilizzare.

Si applica a

SetJsonPropertyName(IConventionEntityType, String, Boolean)

Imposta il valore del nome della proprietà JSON usato per l'entità specificata mappata a una colonna 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

Parametri

entityType
IConventionEntityType

Tipo di entità.

name
String

Nome da utilizzare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a