RelationalComplexTypePrimitiveCollectionBuilderExtensions.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(ComplexTypePrimitiveCollectionBuilder, 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>(ComplexTypePrimitiveCollectionBuilder<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(ComplexTypePrimitiveCollectionBuilder, 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.ComplexTypePrimitiveCollectionBuilder UseCollation (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder primitiveCollectionBuilder, string? collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder
<Extension()>
Public Function UseCollation (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder, collation As String) As ComplexTypePrimitiveCollectionBuilder
Parameters
- primitiveCollectionBuilder
- ComplexTypePrimitiveCollectionBuilder
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>(ComplexTypePrimitiveCollectionBuilder<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.ComplexTypePrimitiveCollectionBuilder<TProperty> UseCollation<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> primitiveCollectionBuilder, string? collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property>
<Extension()>
Public Function UseCollation(Of TProperty) (primitiveCollectionBuilder As ComplexTypePrimitiveCollectionBuilder(Of TProperty), collation As String) As ComplexTypePrimitiveCollectionBuilder(Of TProperty)
Type Parameters
- TProperty
Parameters
- primitiveCollectionBuilder
- ComplexTypePrimitiveCollectionBuilder<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
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor