RelationalPropertyExtensions.SetCollation Method

Definition

Overloads

SetCollation(IMutableProperty, String)

Configures a collation to be used for column this property is mapped to.

SetCollation(IConventionProperty, String, Boolean)

Configures a collation to be used for the column this property is mapped to.

SetCollation(IMutableProperty, String)

Configures a collation to be used for column this property is mapped to.

public static void SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string collation);
public static void SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? collation);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetCollation (property As IMutableProperty, collation As String)

Parameters

property
IMutableProperty

The property.

collation
String

The collation for the column.

Applies to

SetCollation(IConventionProperty, String, Boolean)

Configures a collation to be used for the column this property is mapped to.

public static string SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string collation, bool fromDataAnnotation = false);
public static string? SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? collation, bool fromDataAnnotation = false);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Function SetCollation (property As IConventionProperty, collation As String, Optional fromDataAnnotation As Boolean = false) As String

Parameters

property
IConventionProperty

The property.

collation
String

The collation for the column.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to