MVC Scaffolding
It is an auto-generated template in which models, views and controllers are created.It is used as an basic layout,so that you can customized it according to your project.
Scaffolding provide you the feature in which you select template and model and it will automatically create controller with all of its methods and views supported on them.
Main steps to perform scaffolding:
Click on new project.
Select ASP.Net Web Application.
Now select empty project and Tick on MVC.
Click OK to create project as solution explorer window show below
Right click on solution select Manage NuGet Packages ,Now from top right search bar write Entity Framework and click to install them.
From solution project right click on App Data,now click Add than new item, select SQL Server Database and add them.
Again right click on solution and click on Add than new item, windows menu bar come select Data than add ADO.Net Entity Data Model.
Right Click on solution select new scaffold item,than select MVC Controller with views using entity framework
Select the model class users(webscafartcle) and Data context class Database Entities(webscafartcle).
- Click OK.
- Now run it on browser.
Click to create and users application will be like as: