SqlServerModelExtensions.SetHiLoSequenceName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetHiLoSequenceName(IMutableModel, String) |
設定要用於預設 hi-lo 序列的名稱。 |
SetHiLoSequenceName(IConventionModel, String, Boolean) |
設定要用於預設 hi-lo 序列的名稱。 |
SetHiLoSequenceName(IMutableModel, String)
設定要用於預設 hi-lo 序列的名稱。
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? name);
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetHiLoSequenceName (model As IMutableModel, name As String)
參數
- model
- IMutableModel
模型本身。
- name
- String
要設定的值。
適用於
SetHiLoSequenceName(IConventionModel, String, Boolean)
設定要用於預設 hi-lo 序列的名稱。
public static void SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string? SetHiLoSequenceName (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? name, bool fromDataAnnotation = false);
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetHiLoSequenceName : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetHiLoSequenceName (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetHiLoSequenceName (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false) As String
參數
- model
- IConventionModel
模型本身。
- name
- String
要設定的值。
- fromDataAnnotation
- Boolean
指出是否已使用資料批註指定組態。
傳回
已設定的值。