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
指出是否已使用資料批註指定組態。
傳回
已設定的值。