共用方式為


RelationalModelExtensions.SetCollation 方法

定義

多載

SetCollation(IMutableModel, String)

設定資料庫定序。

SetCollation(IConventionModel, String, Boolean)

設定資料庫定序。

SetCollation(IMutableModel, String)

設定資料庫定序。

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)

參數

model
IMutableModel

要為其設定定序的模型。

value
String

要設定的值。

適用於

SetCollation(IConventionModel, String, Boolean)

設定資料庫定序。

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

參數

model
IConventionModel

要為其設定定序的模型。

value
String

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

設定的定序。

適用於