摘要: 遇到报错如下:Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.建议:1.删除原有数据库2.在Application_Start里面应该为以下代码if (!Database.Exists("connString")) { Database.... 阅读全文
posted @ 2012-10-27 16:15 kenchen20050821 阅读(172) 评论(0) 推荐(0) 编辑