CosmosPropertyExtensions.SetJsonPropertyName Méthode

Définition

Surcharges

SetJsonPropertyName(IMutableProperty, String)

Définit le nom de propriété auquel la propriété est mappée lors du ciblage de Cosmos.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Définit le nom de propriété auquel la propriété est mappée lors du ciblage de Cosmos.

SetJsonPropertyName(IMutableProperty, String)

Définit le nom de propriété auquel la propriété est mappée lors du ciblage de 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)

Paramètres

property
IMutableProperty

Propriété.

name
String

Nom à définir.

S’applique à

SetJsonPropertyName(IConventionProperty, String, Boolean)

Définit le nom de propriété auquel la propriété est mappée lors du ciblage de 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

Paramètres

property
IConventionProperty

Propriété.

name
String

Nom à définir.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Valeur configurée.

S’applique à