ModelContainerConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此 DbModelBuilder 约定使用派生 DbContext 类的名称作为 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)
- 继承
-
ModelContainerConvention
- 实现
方法
Apply(EntityContainer, DbModel) |
将约定应用于给定模型。 |