摘要:
---恢复内容开始--- 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 usi... 阅读全文
摘要:
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 阅读全文