Compartir a través de


CosmosPropertyExtensions.SetJsonPropertyName Método

Definición

Sobrecargas

SetJsonPropertyName(IMutableProperty, String)

Establece el nombre de propiedad al que se asigna la propiedad al establecer como destino Cosmos.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Establece el nombre de propiedad al que se asigna la propiedad al establecer como destino Cosmos.

SetJsonPropertyName(IMutableProperty, String)

Establece el nombre de propiedad al que se asigna la propiedad al establecer como destino 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)

Parámetros

property
IMutableProperty

Propiedad.

name
String

Nombre que se establecerá.

Se aplica a

SetJsonPropertyName(IConventionProperty, String, Boolean)

Establece el nombre de propiedad al que se asigna la propiedad al establecer como destino 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

Parámetros

property
IConventionProperty

Propiedad.

name
String

Nombre que se establecerá.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

El valor configurado.

Se aplica a