liveBook · Manning

Identity scaffolder

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

The Identity scaffolder is a .NET code-generation tool that generates customizable ASP.NET Core Identity UI files.

The Identity scaffolder generates Razor Pages that replace matching pages in ASP.NET Core Identity’s default UI. Generated files initially match the default implementation, then provide a starting point for customization. section 23.5

A typical Visual Studio workflow is:

  • Add the code-generation and Entity Framework Core tools packages if they are missing. section 23.5
  • Ensure the project builds before running the scaffolder. section 23.5
  • Choose Add > New Scaffolded Item, select Identity, then select the page and application data context. section 23.5

Customize registration

Scaffold Account/Register to generate Register.cshtml and its supporting files. Remove the external-provider information section while retaining the generated page’s integration with the default Identity UI. section 23.5

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

How deep it goes
Explains generated files and setup steps, but stops short of describing scaffolder internals.
Examples
Uses the Account/Register page, generated Register.cshtml, package references, and removal of external-provider information.
What it assumes
Assumes a building ASP.NET Core project and requires code-generation and Entity Framework Core tooling packages.
What you can do after
Apply via Visual Studio or the .NET CLI to generate and customize selected Identity pages.
How it connects
Connects ASP.NET Core Identity with Razor Pages, Visual Studio, the .NET CLI, and Entity Framework Core tools.

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.