aspnet-codegenerator installieren:
dotnet tool install -g dotnet-aspnet-codegenerator --version 6.0.0
dotnet aspnet-codegenerator identity -dc ApplicationDbContext
oder wenn vorhanden:
dotnet aspnet-codegenerator identity -dc ApplicationDbContext --force
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --version 6.0.0
dotnet aspnet-codegenerator identity -dc MyBlazorApp.Data.ApplicationDbContext --files "Account.Register;Account.Login;Account.Logout"
Quelle:
https://learn.microsoft.com/de-de/aspnet/core/fundamentals/tools/dotnet-aspnet-codegenerator?view=aspnetcore-8.0