Add Controller Model Classes not shown

Obiwan007 picture Obiwan007 · Mar 18, 2012 · Viewed 30.3k times · Source

I managed to create a Model First DBContext model (before it was a normal ObjectContext derived model).

Strangly now my VS is not showing ANY of my classes in the Model selectlist in "Add Controller". More or less everything external is shown here - except my own stuf. Yes - i compiled the code, the code is compiling without errors and restarted VS multiple times. No clue what the heck is going on.

Same in the Data Context Class selector.

Manuelly setting the class is not working. Add will always complain I have to choose from the list.

Where is VS getting the data for filling the list?

Framework: MVC4, VS2010, EF4.3.1

Answer

poeticGeek picture poeticGeek · Nov 23, 2012

Had the same problem. Found that just Building the project didnt solve the problem of the missing Model classes. Rebuilding the project however, solved it right away.