MVC Scaffolding is a code generation framework for ASP.NET web apps. We use scaffolding when we want to quickly add code that interacts with data operations in our project. This includes entity page templates, filter templates, and field page templates. These are called scaffold templates as they allow us to build a functional data-driven website quickly.
ORM (object-relational mapping) framework is a framework that helps in reducing the amount of handwritten code in a web app. ORM is used when there are no extreme performance requirements, but frameworks like Dapper can be used in high-load systems.
It is not good to put log files in the bin folder because change will cause pool restart. This can cause problems that would be difficult to track down.
We can implement validation in the MVC application with the help of validators defined in the System.ComponentModel.DataAnnotations namespace. The different validators are DataType, Required, Range, and StringLength.
DispatcherServerlet is a class that receives incoming requests and maps them to the most appropriate resources, including Views, Models, and Controllers.
We have a new attribute route in ASP.NET MVC. By using the ‘route’ attribute, URL structure can be defined. If we decorate the ‘GotoAbout’ action with the route attribute, the route attribute says that ‘GotoAbout’ can be invoked using the ‘Users/about’ URL structure.
MVC’s partial view renders a portion of view content. This helps in reducing code supplication. In layman’s terms, the partial view allows rendering a view within the parent view.
This method renders the specified partial view as an HTML string. It does not depend on any action methods. It is used like this: @Html.Partial(“TestPartialView”)
Url helpers allow you to render HTML links and raw URLs. The output of these helpers is dependent on the routing configuration of your ASP.NET MVC application.