RelationalPropertyExtensions.SetCollation 方法

定義

多載

SetCollation(IMutableProperty, String)

設定要用於此屬性所對應之資料行的定序。

SetCollation(IConventionProperty, String, Boolean)

設定要用於此屬性所對應之資料行的定序。

SetCollation(IMutableProperty, String)

設定要用於此屬性所對應之資料行的定序。

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)

參數

property
IMutableProperty

屬性。

collation
String

資料行的定序。

適用於

SetCollation(IConventionProperty, String, Boolean)

設定要用於此屬性所對應之資料行的定序。

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

參數

property
IConventionProperty

屬性。

collation
String

資料行的定序。

fromDataAnnotation
Boolean

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

傳回

已設定的值。

適用於