SqlServerPropertyBuilderExtensions.CanSetIdentityColumnIncrement メソッド

定義

オーバーロード

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

特定のテーブルの ID の増分として指定した値SQL Server設定できるかどうかを示す値を返します。

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

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

パラメーター

propertyBuilder
IConventionPropertyBuilder

構成されているプロパティのビルダー。

increment
Nullable<Int32>

読み込まれた前の行の ID 値に追加される増分値。

fromDataAnnotation
Boolean

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

戻り値

true指定した値を IDENTITY の既定の増分として設定できる場合SQL Server。

注釈

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

適用対象

CanSetIdentityColumnIncrement(IConventionPropertyBuilder, Nullable<Int32>, StoreObjectIdentifier, Boolean)

特定のテーブルの ID の増分として指定した値SQL Server設定できるかどうかを示す値を返します。

public static bool CanSetIdentityColumnIncrement (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? increment, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member CanSetIdentityColumnIncrement : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * StoreObjectIdentifier * bool -> bool
<Extension()>
Public Function CanSetIdentityColumnIncrement (propertyBuilder As IConventionPropertyBuilder, increment As Nullable(Of Integer), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Boolean

パラメーター

propertyBuilder
IConventionPropertyBuilder

構成されているプロパティのビルダー。

increment
Nullable<Int32>

読み込まれた前の行の ID 値に追加される増分値。

storeObject
StoreObjectIdentifier

テーブル識別子。

fromDataAnnotation
Boolean

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

戻り値

true指定した値を IDENTITY の既定の増分として設定できる場合SQL Server。

注釈

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

適用対象