RelationalPropertyExtensions.SetCollation Methode

Definition

Überlädt

SetCollation(IMutableProperty, String)

Konfiguriert eine Sortierung, die für die Spalte verwendet werden soll, der diese Eigenschaft zugeordnet ist.

SetCollation(IConventionProperty, String, Boolean)

Konfiguriert eine Sortierung, die für die Spalte verwendet wird, der diese Eigenschaft zugeordnet ist.

SetCollation(IMutableProperty, String)

Konfiguriert eine Sortierung, die für die Spalte verwendet werden soll, der diese Eigenschaft zugeordnet ist.

public static void SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string collation);
public static void SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? collation);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetCollation (property As IMutableProperty, collation As String)

Parameter

property
IMutableProperty

Die Eigenschaft.

collation
String

Die Sortierung für die Spalte.

Gilt für:

SetCollation(IConventionProperty, String, Boolean)

Konfiguriert eine Sortierung, die für die Spalte verwendet wird, der diese Eigenschaft zugeordnet ist.

public static string SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string collation, bool fromDataAnnotation = false);
public static string? SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? collation, bool fromDataAnnotation = false);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetCollation (property As IConventionProperty, collation As String, Optional fromDataAnnotation As Boolean = false) As String

Parameter

property
IConventionProperty

Die Eigenschaft.

collation
String

Die Sortierung für die Spalte.

fromDataAnnotation
Boolean

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

Gibt zurück

Der konfigurierte Wert.

Gilt für: