RelationalPropertiesConfigurationBuilderExtensions.UseCollation 方法

定義

多載

UseCollation(PropertiesConfigurationBuilder, String)

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

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

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

UseCollation(PropertiesConfigurationBuilder, String)

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

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

參數

propertyBuilder
PropertiesConfigurationBuilder

要設定之屬性的產生器。

collation
String

資料行的定序。

傳回

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

備註

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

適用於

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

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

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

類型參數

TProperty

參數

propertyBuilder
PropertiesConfigurationBuilder<TProperty>

要設定之屬性的產生器。

collation
String

資料行的定序。

傳回

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

備註

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

適用於