c# - ASP.NET MVC Core/6: EF 6 scaffolding error -


i using ef 6 mvc core/6. models , db context in separate project , use di inject db context controllers. when try scaffold controller using ef 6 data context class getting following error:

error

there error running selected code generator: 'a type name myproject.dal.modeis.mymodel not exist microsoft.visuaistudio.web.codegeneration.actioninvokerb__6_0() microsoft. extensions.commandlineutiis.commandlineappiication.exe cute(string[] args) microsoft.visualstudio.web.codegeneration.codegencommand.execu te(string[] args)'

rc2 first release allows include non-asp.net core projects in solution. experience i've learned works if both projects created in visual studio 2015 update 2 , both use .net framework 4.6.1.

there long running issue on github this. i've struggled workarounds presented in thread , couldn't waste anymore time messing it. decided wait until functional release comes out. put shared code in asp.net core (.net framework) project. made class library project creating empty project , deleting except project.json. functionality not supported in stack, put in webapi 2 method can call rc2 project.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -