共用方式為


RelationalComplexTypePropertyBuilderExtensions.UseCollation 方法

定義

多載

UseCollation(ComplexTypePropertyBuilder, String)

設定 屬性以使用指定的定序。 資料庫資料行將會使用指定的定序來建立,而且會隱含地用於所有區分定序的作業中。

UseCollation<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

設定 屬性以使用指定的定序。 資料庫資料行將會使用指定的定序來建立,而且會隱含地用於所有區分定序的作業中。

UseCollation(ComplexTypePropertyBuilder, String)

設定 屬性以使用指定的定序。 資料庫資料行將會使用指定的定序來建立,而且會隱含地用於所有區分定序的作業中。

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

參數

propertyBuilder
ComplexTypePropertyBuilder

要設定之屬性的產生器。

collation
String

資料行的定序。

傳回

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

備註

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

適用於

UseCollation<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

設定 屬性以使用指定的定序。 資料庫資料行將會使用指定的定序來建立,而且會隱含地用於所有區分定序的作業中。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> UseCollation<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, string? collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function UseCollation(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), collation As String) As ComplexTypePropertyBuilder(Of TProperty)

類型參數

TProperty

參數

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要設定之屬性的產生器。

collation
String

資料行的定序。

傳回

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

備註

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

適用於