Can't Add View from Controller in VS 2015 : “There was an error running the selected code generator”

前端 未结 21 2397
独厮守ぢ
独厮守ぢ 2020-11-27 18:34

I\'m following a video tutorial where I\'m required to create an empty ASP.NET Web Application with MVC, using Visual Studio 2015, bei

21条回答
  •  孤街浪徒
    2020-11-27 19:15

    Lets assume you are using a datacontext in a DLL, well, it was my case, and I dont know why I have the same error that you describe, I solve it creating a datacontextLocal on the backend project. then I pass the Dbset to the correct datacontext and delete the local (you can let it there if you want, can be helpfull in the future

    if you ready are using it in local datacontext, create a new one and then pass the Dbset to the correct one

提交回复
热议问题