Share via


RelationalPropertiesConfigurationBuilderExtensions.UseCollation Method

Definition

Overloads

UseCollation(PropertiesConfigurationBuilder, 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>(PropertiesConfigurationBuilder<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(PropertiesConfigurationBuilder, String)

Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.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.PropertiesConfigurationBuilder UseCollation (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder propertyBuilder, string collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
<Extension()>
Public Function UseCollation (propertyBuilder As PropertiesConfigurationBuilder, collation As String) As PropertiesConfigurationBuilder

Parameters

propertyBuilder
PropertiesConfigurationBuilder

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>(PropertiesConfigurationBuilder<TProperty>, String)

Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.cs
Source:
RelationalPropertiesConfigurationBuilderExtensions.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.PropertiesConfigurationBuilder<TProperty> UseCollation<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> propertyBuilder, string collation);
static member UseCollation : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
<Extension()>
Public Function UseCollation(Of TProperty) (propertyBuilder As PropertiesConfigurationBuilder(Of TProperty), collation As String) As PropertiesConfigurationBuilder(Of TProperty)

Type Parameters

TProperty

Parameters

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