共用方式為


SqlServerModelExtensions.SetHiLoSequenceSchema 方法

定義

多載

SetHiLoSequenceSchema(IMutableModel, String)

設定要用於預設 hi-lo 序列的架構。

SetHiLoSequenceSchema(IConventionModel, String, Boolean)

設定要用於預設 hi-lo 序列的架構。

SetHiLoSequenceSchema(IMutableModel, String)

設定要用於預設 hi-lo 序列的架構。

public static void SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
public static void SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
static member SetHiLoSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetHiLoSequenceSchema (model As IMutableModel, value As String)

參數

model
IMutableModel

模型本身。

value
String

要設定的值。

適用於

SetHiLoSequenceSchema(IConventionModel, String, Boolean)

設定要用於預設 hi-lo 序列的架構。

public static void SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string? SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
static member SetHiLoSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetHiLoSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetHiLoSequenceSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetHiLoSequenceSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String

參數

model
IConventionModel

模型本身。

value
String

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於