问题
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