简体   繁体   中英

Cannot add new Scaffold Item in MVC project VS2015

I have a project which has 2 parts the solution, DAL and Website I am trying to generate a controller from a model in the DAL, but the DAL models are not showing up in the Model Class entry field in the create scaffold item dialog

Things Ive tried: rebuilt the entire solution deleted the folder and restored from repo opened the solution in an older version of VS

nothing seems to work. The view models show up fine in the dialog, but the domain models from teh external DAL are not showing at all

It seem that you don't have the reference in your MVC project to your DAL project, have you tried this already ?

右键

选择DAL项目

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM