Entity Framework Error: Could not find the conceptual model type for X

我的梦境 提交于 2019-12-12 11:04:02

问题


I have a demo project with two folders:

Data
   /DbContext
   /EntityFramework

Both have an EDMX, and for the DbContext folder, I have a DbContext generator T4 template setup. Whenever I try to run my DbContext samples, I get an error saying "Could not find the conceptual model type for X", that it can't load the metadata for an entity defined in the EntityFramework folder's EDMX... Why in the world would it do that? I did not setup any T4 template for the EDMX in the EntityFramework folder, and did not copy the EDMX over, but created a new one in the DbContext. I verified the connection string is mapping to the correct EDMX...

Any ideas why I get the error then: Could not find the conceptual model type for X?

Thanks.

来源:https://stackoverflow.com/questions/10086834/entity-framework-error-could-not-find-the-conceptual-model-type-for-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!