Using scaffolding
Scaffolding is one of the most beneficial features for developers in Visual Studio. By using scaffolding, we can save time generating code automatically by just clicking on some options.
It's indispensable to clarify that scaffolding is a popular concept in software development, and this is not unique to Visual Studio. Normally, scaffolding is associated with the code generation of model view controller (MVC) components. MVC is a popular pattern for creating web applications. Using MVC, you must distribute the responsibilities for creating web applications into three different components:
- Model: Responsible for saving the data
- View: The interface that interacts with the user
- Controller: In charge of handling all the actions performed by the user in the view
To use scaffolding in Visual Studio, you can select the folder in the solution explorer and right-click it to open the options to select New Scaffolded Item… (see Figure 8...