RelationalPropertyExtensions.SetJsonPropertyName Méthode

Définition

Surcharges

SetJsonPropertyName(IMutableProperty, String)

Définit la valeur du nom de propriété JSON utilisé pour la propriété donnée d’une entité mappée à une colonne JSON.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Définit la valeur du nom de propriété JSON utilisé pour la propriété donnée d’une entité mappée à une colonne JSON.

SetJsonPropertyName(IMutableProperty, String)

Définit la valeur du nom de propriété JSON utilisé pour la propriété donnée d’une entité mappée à une colonne JSON.

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 à utiliser.

S’applique à

SetJsonPropertyName(IConventionProperty, String, Boolean)

Définit la valeur du nom de propriété JSON utilisé pour la propriété donnée d’une entité mappée à une colonne JSON.

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 à utiliser.

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 à