摘要: Model compatibility cannot be checked because the EdmMetadata type was not included in the model. Ensure that Include Metadata Convention has been added to the DbModelBuilder conventions.碰到此错误是由于使用了Code First来生成数据库,生成数据库之后修改了模型。只需要在Global.asax.cs的Application_Start()方法中将Database.SetInitializer<DbC 阅读全文
posted @ 2013-06-21 10:13 曉軒 阅读(209) 评论(0) 推荐(0) 编辑