SqlServerModelExtensions.SetIdentitySeed メソッド

定義

オーバーロード

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

既定の ID シードを設定します。

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

既定の ID シードを設定します。

SetIdentitySeed(IMutableModel, Nullable<Int32>)

既定の ID シードを設定します。

SetIdentitySeed(IMutableModel, Nullable<Int64>)

既定の ID シードを設定します。

SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)

既定の ID シードを設定します。

public static long? SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, long? seed, bool fromDataAnnotation = false);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<int64> * bool -> Nullable<int64>
<Extension()>
Public Function SetIdentitySeed (model As IConventionModel, seed As Nullable(Of Long), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Long)

パラメーター

model
IConventionModel

モデル。

seed
Nullable<Int64>

設定する値。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

構成された値です。

適用対象

SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)

既定の ID シードを設定します。

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

パラメーター

model
IConventionModel

モデル。

seed
Nullable<Int32>

設定する値。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

構成された値です。

適用対象

SetIdentitySeed(IMutableModel, Nullable<Int32>)

既定の ID シードを設定します。

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

パラメーター

model
IMutableModel

モデル。

seed
Nullable<Int32>

設定する値。

適用対象

SetIdentitySeed(IMutableModel, Nullable<Int64>)

既定の ID シードを設定します。

public static void SetIdentitySeed (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, long? seed);
static member SetIdentitySeed : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Nullable<int64> -> unit
<Extension()>
Public Sub SetIdentitySeed (model As IMutableModel, seed As Nullable(Of Long))

パラメーター

model
IMutableModel

モデル。

seed
Nullable<Int64>

設定する値。

適用対象