c# - scafford auto generate crud repository asp.net5 -


hi using visual studio 2015, understand can generate crud view controller , action adding new scafford item. code generation not usable seem data layer depend on controller

so here question tat way use scafford generate code generate repository pattern also? or nuget offer same feature?

sorry. had googling few hour . still cant find solution. :(

thanks

enter image description here

i agree, it's problem in mvc core (mvc6). able work add scaffold controller on have include additional packages in "dependencies" part of project.json. if use rc1 should include

"microsoft.aspnet.mvc": "6.0.0-rc1-final", "microsoft.aspnet.mvc.taghelpers": "6.0.0-rc1-final", "microsoft.extensions.codegenerators.mvc": "1.0.0-rc1-final", "entityframework.microsoftsqlserver": "7.0.0-rc1-final" 

it should enough see wizard in visual studio, miss now.

to able use in command line interface scaffolding (dnx ef dbcontext scaffold ... example) need add more dependencies

"entityframework.microsoftsqlserver.design": "7.0.0-rc1-final", "entityframework.relational.design": "7.0.0-rc1-final" "entityframework.commands": "7.0.0-rc1-final" 

add add "ef": "entityframework.commands" in "commands" section of project.json.

an additional problem bring renaming float of packages after changing product name asp.net 5 asp.net core. package "entityframework.microsoftsqlserver" in version "7.0.0-rc1-final" renamed "microsoft.entityframeworkcore.sqlserver" in version "1.0.0-rc2-16811", package "microsoft.aspnet.mvc" in version "6.0.0-rc1-final" renamed in "microsoft.aspnetcore.mvc" in version "1.0.0-rc2-17011" , on (i used today's latest builds https://www.myget.org/f/aspnetcidev/).

i recommend stay today on rc1 , wait end of renaming process. posted the suggestion, simplify migration of existing projects, suggestion not accepted. microsoft have change date of rc2 , rtm february , q1 unknown (see tbd on the official roadmap). hope problem solved in short time.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -