What are Scaffold templates in MVC?

 Posted by Chvrsri on 3/8/2016 | Category: ASP.NET MVC Interview questions | Views: 5117 | Points: 40

Generally the term scaffold means a temporary platform that was set to build some thing.

For Example: Painters put some temporary arrangements with wood to paint the outside part of a building.

So as the term suggests these scaffold templates are used to generate code for the basic CRUD operations within our ASP.NET MVC application against our database with the help of entity framework.

Steps followed to create a scaffold template are:

Step1: we need to add a controller to our project first.
Step2: Choose the respective Scaffold template to perform CRUD operations
(Ex: In AddScaffold pop up add MVC5 controller with Read/Write actions)
Step3: Giving a decent name to our controller.

So now it generates the code for insert,update and delete operations

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Sheonarayan on: 3/9/2016 | Points: 10
Thanks Srikanth.

Here are the complete steps with screen shots - http://techfunda.com/howto/109/scaffolding.


Login to post response