Answer:
ASP.NET Scaffolding is a code generation framework for ASP.NET Web applications. Visual Studio 2013 includes pre-installed code generators for MVC and Web API projects. You add scaffolding to your project when you want to quickly add code that interacts with data models. Using scaffolding can reduce the amount of time to develop standard data operations in your project.
Scaffolding consists of page templates, entity page templates, field page templates, and filter templates. These templates are called Scaffold templates and allow you to quickly build a functional data-driven Website.
Scaffolding Templates:
☛ Create: It creates a View that helps in creating a new record for the Model. It automatically generates a label and input field for each property in the Model.
☛ Delete: It creates a list of records from the model collection along with the delete link with delete record.
☛ Details: It generates a view that displays the label and an input field of the each property of the Model in the MVC framework.
☛ Edit: It creates a View with a form that helps in editing the current Model. It also generates a form with label and field for each property of the model.
☛ List: It generally creates a View with the help of a HTML table that lists the Models from the Model Collection. It also generates a HTML table column for each property of the Model.
Scaffolding consists of page templates, entity page templates, field page templates, and filter templates. These templates are called Scaffold templates and allow you to quickly build a functional data-driven Website.
Scaffolding Templates:
☛ Create: It creates a View that helps in creating a new record for the Model. It automatically generates a label and input field for each property in the Model.
☛ Delete: It creates a list of records from the model collection along with the delete link with delete record.
☛ Details: It generates a view that displays the label and an input field of the each property of the Model in the MVC framework.
☛ Edit: It creates a View with a form that helps in editing the current Model. It also generates a form with label and field for each property of the model.
☛ List: It generally creates a View with the help of a HTML table that lists the Models from the Model Collection. It also generates a HTML table column for each property of the Model.
Previous Question | Next Question |
Explain me what is the difference between Temp data, View, and View Bag? | What is RenderSection in MVC? |