RelationalPropertyExtensions.SetCollation 方法

定义

重载

SetCollation(IMutableProperty, String)

配置要用于此属性映射到的列的排序规则。

SetCollation(IConventionProperty, String, Boolean)

配置要用于此属性映射到的列的排序规则。

SetCollation(IMutableProperty, String)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

配置要用于此属性映射到的列的排序规则。

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)

参数

property
IMutableProperty

属性。

collation
String

列的排序规则。

适用于

SetCollation(IConventionProperty, String, Boolean)

Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs
Source:
RelationalPropertyExtensions.cs

配置要用于此属性映射到的列的排序规则。

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

参数

property
IConventionProperty

属性。

collation
String

列的排序规则。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

配置的值。

适用于