Jazyk

ContextContainerConvention Třída

Definice

Konvence, která konfiguruje výchozí název kontejneru jako název typu kontextu.

[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
Dědičnost
ContextContainerConvention
Atributy
Implementuje

Poznámky

Další informace a příklady najdete v tématu Konvence vytváření modelů a přístup k Azure Cosmos DB pomocí EF Core.

Konstruktory

Název Description
ContextContainerConvention(ProviderConventionSetBuilderDependencies)

Vytvoří novou instanci .ContextContainerConvention

Vlastnosti

Název Description
Dependencies

Závislosti pro tuto službu.

Metody

Název Description
ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Volá se po inicializaci modelu.

Platí pro