RelationalModelExtensions.SetCollation Metoda

Definice

Přetížení

SetCollation(IMutableModel, String)

Nastaví kolaci databáze.

SetCollation(IConventionModel, String, Boolean)

Nastaví kolaci databáze.

SetCollation(IMutableModel, String)

Nastaví kolaci databáze.

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)

Parametry

model
IMutableModel

Model, pro který se má nastavit kolace.

value
String

Hodnota k nastavení.

Platí pro

SetCollation(IConventionModel, String, Boolean)

Nastaví kolaci databáze.

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

Parametry

model
IConventionModel

Model, pro který se má nastavit kolace.

value
String

Hodnota k nastavení.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Nakonfigurovaná kolace.

Platí pro