Seeding Users and Roles in ASP.NET Razor Pages with RoleManager & UserManager
Channel: Medhat Elmasry
Date: 2022-10-03

I describe the steps you need to follow if you want seed both users and roles data. We will also look at how you can go about securing an ASP.NET Razor Pages application by user and by roles.

Source Code: https://github.com/medhatelmasry/SeedIdentity
Companion Article: https://blog.medhat.ca/2023/10/seeding-users-and-roles-in-aspnet-razor.html