Scaffolding in .NET Core (generate API controllers – CRUD (or MVC controller with views in necessary)

Right click on ‘Controllers’ folder –> Add –> New Scaffolded Item… For api controller without views select ‘API Controller with actions, using Entity Framework’ and click ‘Add’.If MVC then choose ‘MVC Controller with views, using using Entity Framework’ On next view select your model (you need create model before generate code) and select data contextContinue reading “Scaffolding in .NET Core (generate API controllers – CRUD (or MVC controller with views in necessary)”