I've found this answer but it doesn't seem to fit in my ASP Net Core project.
Things I am trying to understand:
- How can I add a custom role. I've even looked directly in my MySQL database (table
aspnetroles
), but I don't know what to use asId
andConcurrencyStamp
. - Where do I put the code to seed the database with these new roles: in
Startup
? inRegister
underAccountController
? - How do I tie this new role to a user? I've even looked through the tables and I don't know how to assign the data (there is no
user2role
oraspnetusers.role_id
).