次の方法で共有


SqlServerStoreGenerationConvention クラス

定義

計算列として、または を同時に使用 SqlServerValueGenerationStrategy して、既定値を持つプロパティが構成されていないことを保証する規則。

public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
type SqlServerStoreGenerationConvention = class
    inherit StoreGenerationConvention
Public Class SqlServerStoreGenerationConvention
Inherits StoreGenerationConvention
継承
SqlServerStoreGenerationConvention

注釈

詳細と例については、「モデルの構築規則」および「EF Core を使用したSQL ServerデータベースとAzure SQL データベースへのアクセス」を参照してください。

コンストラクター

SqlServerStoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

SqlServerStoreGenerationConvention の新しいインスタンスを作成します。

プロパティ

Dependencies

このサービスの依存関係。

(継承元 StoreGenerationConvention)
RelationalDependencies

このサービスのリレーショナル プロバイダー固有の依存関係。

(継承元 StoreGenerationConvention)

メソッド

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

モデルが完成した後に呼び出されます。

(継承元 StoreGenerationConvention)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

モデルの最終処理時に呼び出されます。

(継承元 StoreGenerationConvention)
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

プロパティで注釈が変更された後に呼び出されます。

Validate(IConventionProperty)

計算列として、または を同時に使用 SqlServerValueGenerationStrategy して、既定値を持つプロパティが構成されていないことを保証する規則。

Validate(IConventionProperty)

このプロパティのストア生成構成が競合している場合は をスローします。

(継承元 StoreGenerationConvention)
Validate(IConventionProperty, StoreObjectIdentifier)

このプロパティのストア生成構成が競合している場合は をスローします。

Validate(IConventionProperty, StoreObjectIdentifier)

このプロパティのストア生成構成が競合している場合は をスローします。

(継承元 StoreGenerationConvention)

適用対象