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

列的排序规则。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库排序规则

适用于