Sprache

RelationalComplexPropertyExtensions.SetJsonPropertyName Methode

Definition

Überlädt

Name Beschreibung
SetJsonPropertyName(IMutableComplexProperty, String)

Legt den Wert des JSON-Eigenschaftsnamens fest, der für die angegebene komplexe Eigenschaft einer Entität verwendet wird, die einer JSON-Spalte zugeordnet ist.

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Legt den Wert des JSON-Eigenschaftsnamens fest, der für die angegebene komplexe Eigenschaft einer Entität verwendet wird, die einer JSON-Spalte zugeordnet ist.

SetJsonPropertyName(IMutableComplexProperty, String)

Quelle:
RelationalComplexPropertyExtensions.cs
Quelle:
RelationalComplexPropertyExtensions.cs

Legt den Wert des JSON-Eigenschaftsnamens fest, der für die angegebene komplexe Eigenschaft einer Entität verwendet wird, die einer JSON-Spalte zugeordnet ist.

public static void SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty complexProperty, string? name);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty * string -> unit
<Extension()>
Public Sub SetJsonPropertyName (complexProperty As IMutableComplexProperty, name As String)

Parameter

complexProperty
IMutableComplexProperty

Die komplexe Eigenschaft.

name
String

Der zu verwendende Name.

Gilt für:

SetJsonPropertyName(IConventionComplexProperty, String, Boolean)

Quelle:
RelationalComplexPropertyExtensions.cs
Quelle:
RelationalComplexPropertyExtensions.cs

Legt den Wert des JSON-Eigenschaftsnamens fest, der für die angegebene komplexe Eigenschaft einer Entität verwendet wird, die einer JSON-Spalte zugeordnet ist.

public static string? SetJsonPropertyName(this Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty complexProperty, string? name, bool fromDataAnnotation = false);
static member SetJsonPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty * string * bool -> string
<Extension()>
Public Function SetJsonPropertyName (complexProperty As IConventionComplexProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parameter

complexProperty
IConventionComplexProperty

Die komplexe Eigenschaft.

name
String

Der zu verwendende Name.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für: