Language

ContextContainerConvention クラス

定義

既定のコンテナー名をコンテキストの種類名として構成する規則。

[System.Runtime.CompilerServices.Nullable(0)]
public class ContextContainerConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class ContextContainerConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type ContextContainerConvention = class
    interface IModelInitializedConvention
    interface IConvention
type ContextContainerConvention = class
    interface IModelInitializedConvention
    interface IConvention
Public Class ContextContainerConvention
Implements IModelInitializedConvention
継承
ContextContainerConvention
属性
実装

注釈

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

コンストラクター

Name 説明
ContextContainerConvention(ProviderConventionSetBuilderDependencies)

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

プロパティ

Name 説明
Dependencies

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

メソッド

Name 説明
ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

モデルが初期化された後に呼び出されます。

適用対象