次の方法で共有


StoreGenerationConvention クラス

定義

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

public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizedConvention
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class StoreGenerationConvention
Implements IModelFinalizedConvention, IPropertyAnnotationChangedConvention
Public Class StoreGenerationConvention
Implements IModelFinalizingConvention, IPropertyAnnotationChangedConvention
継承
StoreGenerationConvention
派生
実装

注釈

詳細と例については、 モデル構築規則EF Core 値の生成 に関するページを参照してください。

コンストラクター

StoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

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

プロパティ

Dependencies

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

RelationalDependencies

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

メソッド

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

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

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

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

ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

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

Validate(IConventionProperty)

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

Validate(IConventionProperty, StoreObjectIdentifier)

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

適用対象