次の方法で共有


SqlServerModelBuilderExtensions.CanSetIdentityColumnSeed メソッド

定義

オーバーロード

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

指定した値を IDENTITY の既定のシードとして設定できるかどうかを示す値SQL Server返します。

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

指定した値を IDENTITY の既定のシードとして設定できるかどうかを示す値SQL Server返します。

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int32>, Boolean)

指定した値を IDENTITY の既定のシードとして設定できるかどうかを示す値SQL Server返します。

public static bool CanSetIdentityColumnSeed (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, int? seed, bool fromDataAnnotation = false);
static member CanSetIdentityColumnSeed : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * Nullable<int> * bool -> bool
<Extension()>
Public Function CanSetIdentityColumnSeed (modelBuilder As IConventionModelBuilder, seed As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Boolean

パラメーター

modelBuilder
IConventionModelBuilder

モデル ビルダー。

seed
Nullable<Int32>

テーブルに読み込まれた最初の行に使用される値。

fromDataAnnotation
Boolean

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

戻り値

true指定された値を IDENTITY のシードとして設定できる場合SQL Server。

適用対象

CanSetIdentityColumnSeed(IConventionModelBuilder, Nullable<Int64>, Boolean)

指定した値を IDENTITY の既定のシードとして設定できるかどうかを示す値SQL Server返します。

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

パラメーター

modelBuilder
IConventionModelBuilder

モデル ビルダー。

seed
Nullable<Int64>

テーブルに読み込まれた最初の行に使用される値。

fromDataAnnotation
Boolean

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

戻り値

true指定された値を IDENTITY のシードとして設定できる場合SQL Server。

注釈

詳細と例については、「エンティティの種類とリレーションシップのモデリング」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。

適用対象