liveBook · Manning

Scaffold

As explained in ASP.NET Core in Action, 3e

Scaffolding is the process of generating project files that provide a starting point for customization.

Scaffolding generates project files that provide a starting point for customization. In ASP.NET Core Identity, it creates Razor Pages in the correct locations so they override equivalent pages in the default UI. section 23.5

Use scaffolding when you need to:

  • Replace one default Identity page without rebuilding the entire user interface. section 23.5
  • Customize both a Razor template and its PageModel page handlers. section 23.5
  • Start with generated code matching the default Identity UI, then modify it for application needs. section 23.5

Customizing the registration page

Scaffold Register.cshtml, then remove the external-login-provider information that users do not need to see. The generated page includes supporting files that integrate with the default Identity UI. section 23.5

How ASP.NET Core in Action, 3e covers it

How deep it goes
Defines generated-file behavior and demonstrates page customization, but does not detail the complete scaffolding workflow.
Examples
Demonstrates scaffolding Register.cshtml and removing external-login-provider information from the registration experience.
What it assumes
Requires an ASP.NET Core project using Identity and may require scaffolding and Entity Framework tools packages.
What you can do after
Apply it via Visual Studio or the .NET CLI to generate Identity pages for targeted customization.
How it connects
Connects scaffolding with ASP.NET Core Identity, Razor Pages, PageModel handlers, and default UI replacement.

Also explained in

Compare how 3 books explain scaffold →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ASP.NET Core in Action, 3e. The section links point to the parts of the book it draws on.