Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 3 & ASP.Net with Entity Framework scaffolding error : No model classes are available

I am trying to use MVC3 with the Entity framework with Code First, but the code Template generation process in MS Visual Web Developer 2010 - is not detecting my Model in the models folder - giving a message - "No Model classes are available" - although I do have model classes for which I want to create controllers.

The templating option I've selected is "Controller with read/write actions and views using the Entity Framework".

I've uninstalled and reinstalled Web Developer 2010, but still having the same error.

Anyone know how I can get around this error?

like image 862
André Vermeulen Avatar asked Apr 16 '11 11:04

André Vermeulen


1 Answers

xixonia's response worked for me. All I needed to do was build/rebuild the project and then everything worked as expected.

like image 154
Kyle Avatar answered Sep 24 '22 12:09

Kyle