共用方式為


SqlServerModelExtensions.SetHiLoSequenceName 方法

定義

多載

SetHiLoSequenceName(IMutableModel, String)

設定要用於預設 hi-lo 序列的名稱。

SetHiLoSequenceName(IConventionModel, String, Boolean)

設定要用於預設 hi-lo 序列的名稱。

SetHiLoSequenceName(IMutableModel, String)

來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs

設定要用於預設 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)

來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs

設定要用於預設 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

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

傳回

已設定的值。

適用於