I've found that you can use the DbContext
via the IdentityStore
instance and use the well-known method .Set()
.
This works for me:
var identityStore = new IdentityStore();
foreach (var role in identityStore.DbContext.Set())
{
Debug.WriteLine(role.Name);
}