Sql – Model classes don’t show up in Add View dialog

asp.net-mvc, linq-to-sql

I asp.net mvc my model classes won't show up in the Add View dialog, so that VS automatically can generate CRUD views for them.

I have my Model classes (Linq-to-SQL) in a separate project (but in the same solution) than my asp.net MVC project.

Only stuff from the Elmah and Autofac namespace shows up in the list!

Best Solution

Are you create an instance of the model classes in the controller methods? They won't get seen by the VS view wizards bits unless you do.