共用方式為


RelationalModelBuilderExtensions.UseCollation 方法

定義

多載

UseCollation(ModelBuilder, String)

設定資料庫定序,這些資料行將會使用,而不會有明確的定序。

UseCollation(IConventionModelBuilder, String, Boolean)

設定資料庫定序,這些資料行將會使用,而不會有明確的定序。

UseCollation(ModelBuilder, String)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

設定資料庫定序,這些資料行將會使用,而不會有明確的定序。

public static Microsoft.EntityFrameworkCore.ModelBuilder UseCollation (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string collation);
public static Microsoft.EntityFrameworkCore.ModelBuilder UseCollation (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string? collation);
static member UseCollation : Microsoft.EntityFrameworkCore.ModelBuilder * string -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function UseCollation (modelBuilder As ModelBuilder, collation As String) As ModelBuilder

參數

modelBuilder
ModelBuilder

模型產生器。

collation
String

定序。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例 ,請參閱資料庫定 序。

適用於

UseCollation(IConventionModelBuilder, String, Boolean)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

設定資料庫定序,這些資料行將會使用,而不會有明確的定序。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder UseCollation (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string collation, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder? UseCollation (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string? collation, bool fromDataAnnotation = false);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
<Extension()>
Public Function UseCollation (modelBuilder As IConventionModelBuilder, collation As String, Optional fromDataAnnotation As Boolean = false) As IConventionModelBuilder

參數

modelBuilder
IConventionModelBuilder

模型產生器。

collation
String

定序。

fromDataAnnotation
Boolean

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

傳回

如果已套用組態,則為相同的產生器實例, null 否則為 。

備註

如需詳細資訊和範例 ,請參閱資料庫定 序。

適用於