Search code examples
asp.net-identityroles

Roles in AspNetRoles in RoleManager AspNet.Identity


Here the Role table having three roles. where the last two record (Doctor and FrontDesk) is manually inserted in database.

But when i get roles list form using owin context rolemanger. i can't get records which i manually added.

enter image description here

swagger output:[ { "id": "b45b6ccb-e849-41d2-b190-fd45da8e2c4e", "name": "Admin", } ]


Solution

  • Try changing the discriminator of Doctor and FrontDesk to ApplicationRole.