共用方式為


SqlServerModelExtensions.SetIdentityIncrement 方法

定義

多載

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

設定預設識別遞增。

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

設定預設識別遞增。

SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)

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

設定預設識別遞增。

public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? increment, bool fromDataAnnotation = false);
public static int? SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, int? increment, bool fromDataAnnotation = false);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> unit
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetIdentityIncrement (model As IConventionModel, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIdentityIncrement (model As IConventionModel, increment As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

參數

model
IConventionModel

模型本身。

increment
Nullable<Int32>

要設定的值。

fromDataAnnotation
Boolean

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

傳回

已設定的值。

適用於

SetIdentityIncrement(IMutableModel, Nullable<Int32>)

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

設定預設識別遞增。

public static void SetIdentityIncrement (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, int? increment);
static member SetIdentityIncrement : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int> -> unit
<Extension()>
Public Sub SetIdentityIncrement (model As IMutableModel, increment As Nullable(Of Integer))

參數

model
IMutableModel

模型本身。

increment
Nullable<Int32>

要設定的值。

適用於