RelationalModelExtensions.SetCollation Methode

Definition

Überlädt

SetCollation(IMutableModel, String)

Legt die Datenbanksortierung fest.

SetCollation(IConventionModel, String, Boolean)

Legt die Datenbanksortierung fest.

SetCollation(IMutableModel, String)

Legt die Datenbanksortierung fest.

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

Parameter

model
IMutableModel

Das Modell, für das die Sortierung festgelegt werden soll.

value
String

Der festzulegende Wert.

Gilt für:

SetCollation(IConventionModel, String, Boolean)

Legt die Datenbanksortierung fest.

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

Parameter

model
IConventionModel

Das Modell, für das die Sortierung festgelegt werden soll.

value
String

Der festzulegende Wert.

fromDataAnnotation
Boolean

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

Gibt zurück

Die konfigurierte Sortierung.

Gilt für: