Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Controller Model Classes not shown

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

like image 337
Obiwan007 Avatar asked Mar 18 '12 12:03

Obiwan007


1 Answers

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.

like image 114
poeticGeek Avatar answered Sep 18 '22 20:09

poeticGeek