ModelContainerConvention Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework