RelationalPrimitiveCollectionBuilderExtensions.UseCollation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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
Entity Framework