Share via


RelationalPrimitiveCollectionBuilderExtensions.UseCollation Method

Definition

Overloads

UseCollation(PrimitiveCollectionBuilder, String)

Configures the property to use the given collation. The database column will be created with the given collation, and it will be used implicitly in all collation-sensitive operations.

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

Configures the property to use the given collation. The database column will be created with the given collation, and it will be used implicitly in all collation-sensitive operations.

UseCollation(PrimitiveCollectionBuilder, String)

Source:
RelationalPrimitiveCollectionBuilderExtensions.cs
Source:
RelationalPrimitiveCollectionBuilderExtensions.cs

Configures the property to use the given collation. The database column will be created with the given collation, and it will be used implicitly in all collation-sensitive operations.

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

Parameters

primitiveCollectionBuilder
PrimitiveCollectionBuilder

The builder for the property being configured.

collation
String

The collation for the column.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Database collations for more information and examples.

Applies to

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

Source:
RelationalPrimitiveCollectionBuilderExtensions.cs
Source:
RelationalPrimitiveCollectionBuilderExtensions.cs

Configures the property to use the given collation. The database column will be created with the given collation, and it will be used implicitly in all collation-sensitive operations.

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

Type Parameters

TProperty

Parameters

primitiveCollectionBuilder
PrimitiveCollectionBuilder<TProperty>

The builder for the property being configured.

collation
String

The collation for the column.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Database collations for more information and examples.

Applies to