RelationalModelExtensions.SetCollation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetCollation(IMutableModel, String) |
设置数据库排序规则。 |
SetCollation(IConventionModel, String, Boolean) |
设置数据库排序规则。 |
SetCollation(IMutableModel, String)
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
设置数据库排序规则。
public static void SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
public static void SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetCollation (model As IMutableModel, value As String)
参数
- model
- IMutableModel
要为其设置排序规则的模型。
- value
- String
要设置的值。
适用于
SetCollation(IConventionModel, String, Boolean)
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
设置数据库排序规则。
public static string SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string? SetCollation (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
static member SetCollation : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Function SetCollation (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String
参数
- model
- IConventionModel
要为其设置排序规则的模型。
- value
- String
要设置的值。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定配置。
返回
配置的排序规则。