Share via


CosmosPropertyExtensions.SetJsonPropertyName Metodo

Definizione

Overload

SetJsonPropertyName(IMutableProperty, String)

Imposta il nome della proprietà a cui viene eseguito il mapping della proprietà quando la destinazione è Cosmos.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Imposta il nome della proprietà a cui viene eseguito il mapping della proprietà quando la destinazione è Cosmos.

SetJsonPropertyName(IMutableProperty, String)

Imposta il nome della proprietà a cui viene eseguito il mapping della proprietà quando la destinazione è 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)

Parametri

property
IMutableProperty

Proprietà.

name
String

Nome da impostare.

Si applica a

SetJsonPropertyName(IConventionProperty, String, Boolean)

Imposta il nome della proprietà a cui viene eseguito il mapping della proprietà quando la destinazione è 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

Parametri

property
IConventionProperty

Proprietà.

name
String

Nome da impostare.

fromDataAnnotation
Boolean

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

Restituisce

Il valore configurato.

Si applica a