The model backing the ' ***' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
原因:项目首先采用的是codefirst 方式开发数据库,在项目部署时, Global.asax 中 我注释掉了 Database.SetInitializer<iEibmsDbEntities>(new *****DbInitializer()); 结果出现了上面的错误,
解决方法:设置初始化的类为 null 就可以了 Database.SetInitializer<iEibmsDbEntities>(null);
分类略显不科学,这个应该是entityframework 中的问题