SqlServerPropertyExtensions.SetHiLoSequenceName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SetHiLoSequenceName(IMutableProperty, String) |
设置要用于 hi-lo 序列的名称。 |
SetHiLoSequenceName(IConventionProperty, String, Boolean) |
设置要用于 hi-lo 序列的名称。 |
SetHiLoSequenceName(IMutableProperty, String)
设置要用于 hi-lo 序列的名称。
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? name);
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetHiLoSequenceName (property As IMutableProperty, name As String)
参数
- property
- IMutableProperty
属性。
- name
- String
要使用的序列名称。
适用于
SetHiLoSequenceName(IConventionProperty, String, Boolean)
设置要用于 hi-lo 序列的名称。
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string name, bool fromDataAnnotation = false);
public static string? SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? name, bool fromDataAnnotation = false);
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Sub SetHiLoSequenceName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetHiLoSequenceName (property As IConventionProperty, name As String, Optional fromDataAnnotation As Boolean = false) As String
参数
- property
- IConventionProperty
属性。
- name
- String
要使用的序列名称。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定配置。
返回
配置的值。