摘要:
如题,在MVC3下,我用的Code first开发模式进行的网站开发,在上下文类中,我这样写了一条语句:public MVCApollo365Entities() : base("MVCApollo365Entities") { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { throw new UnintentionalCodeFirstException(); }红色部分,见鬼了,硬是导致了错误如下:Code generated using the T4 templates 阅读全文