語言

RelationalPropertyExtensions.SetCollation 方法

定義

多載

名稱 Description
SetCollation(IConventionProperty, String, Boolean)

配置一個整合以用於該屬性映射到的欄位。

SetCollation(IMutableProperty, String)

配置一個彙整以用於該屬性映射的欄位。

SetCollation(IConventionProperty, String, Boolean)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

配置一個整合以用於該屬性映射到的欄位。

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

表示配置是否以資料註解方式指定。

傳回

設定值。

適用於

SetCollation(IMutableProperty, String)

來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs
來源:
RelationalPropertyExtensions.cs

配置一個彙整以用於該屬性映射的欄位。

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

專欄的整理。

適用於