Share via


RelationalComplexTypePropertyBuilderExtensions.UseCollation Method

Definition

Overloads

UseCollation(ComplexTypePropertyBuilder, 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>(ComplexTypePropertyBuilder<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(ComplexTypePropertyBuilder, 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.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

Parameters

propertyBuilder
ComplexTypePropertyBuilder

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>(ComplexTypePropertyBuilder<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.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)

Type Parameters

TProperty

Parameters

propertyBuilder
ComplexTypePropertyBuilder<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