Share via


ModelContainerConvention Class

Definition

This DbModelBuilder convention uses the name of the derived DbContext class as the container for the conceptual model built by Code First.

public class ModelContainerConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityContainer>
type ModelContainerConvention = class
    interface IConceptualModelConvention<EntityContainer>
    interface IConvention
Public Class ModelContainerConvention
Implements IConceptualModelConvention(Of EntityContainer)
Inheritance
ModelContainerConvention
Implements

Methods

Apply(EntityContainer, DbModel)

Applies the convention to the given model.

Applies to