Share via


CosmosPropertyExtensions.SetJsonPropertyName Methode

Definition

Überlädt

SetJsonPropertyName(IMutableProperty, String)

Legt den Eigenschaftennamen fest, dem die Eigenschaft zugeordnet wird, wenn Cosmos als Ziel verwendet wird.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Legt den Eigenschaftennamen fest, dem die Eigenschaft zugeordnet wird, wenn Cosmos als Ziel verwendet wird.

SetJsonPropertyName(IMutableProperty, String)

Legt den Eigenschaftennamen fest, dem die Eigenschaft zugeordnet wird, wenn Cosmos als Ziel verwendet wird.

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)

Parameter

property
IMutableProperty

Die Eigenschaft.

name
String

Der Name, der festgelegt werden soll.

Gilt für:

SetJsonPropertyName(IConventionProperty, String, Boolean)

Legt den Eigenschaftennamen fest, dem die Eigenschaft zugeordnet wird, wenn Cosmos als Ziel verwendet wird.

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

Parameter

property
IConventionProperty

Die Eigenschaft.

name
String

Der Name, der festgelegt werden soll.

fromDataAnnotation
Boolean

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

Gibt zurück

Der konfigurierte Wert.

Gilt für: