Seed Identity User and Role In ASP.Net Core with EF Core
Aug 15, 2019
Seeding is the process of creating an initial set of data in the database.
In the OnModelCreating method of my database context, I use the below code to
- Seed a new “admin” role
- Seed a new admin user
- Seed admin into the role