marysaray / PortfolioProject

Website invitation for events.
0 stars 0 forks source link

Customize Identity Roles (Admin/User) #4

Closed marysaray closed 2 years ago

marysaray commented 2 years ago

Run the Identity scaffolder: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-6.0&tabs=visual-studio

~/Pages/Shared/_Layout.cshtml for Razor Pages ~/Views/Shared/_Layout.cshtml for MVC projects

Blazor Server apps created from the Blazor Server template (blazorserver) aren't configured for Razor Pages or MVC by default. Leave the layout page entry blank.


**Note: _Check the box “Override all files”_**

- Select the + button to create a new Data context class. Accept the default value or specify a class (for example, MyApplication.Data.ApplicationDbContext).
- Select Add.
marysaray commented 2 years ago

Scaffolded Identity into project successfully.