Model classes do not appear in the Add View dialog box.

I asp.net mvc my model classes will not appear in the Add View dialog box, so VS can automatically generate CRUD views for them.

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

Only materials from the Elmah and Autofac namespace are displayed in the list.

+3
source share
2 answers

Do you instantiate model classes in controller methods? They will not be visible by the bits of the VS view widget if you do not.

+2
source

, .

+1

Source: https://habr.com/ru/post/1712175/


All Articles