Sunday 13 January 2013

Could not find the conceptual model type

I have been playing around recently with ASP .Net MVC, and after adding new tables to the Entity Framework model of my test app I started getting the following error:

"Could not find the conceptual model type"

After getting mad for a while I found the solution. For what I read around the web there is a bug with EF that causes problems when the .edmx file is in the same project as your models.

I moved the Entity Framework model to a separate new project in my solution and everything worked fine from there.