ASP.net Identity - How does UserManager<TUser> Have Access To Roles?
问题 ... and we're only inside Microsoft.AspNet.Identity. (We're not even looking at the base implementation at Microsoft.AspNet.Identity.EntityFramework.) The UserManager class only takes in an IUserStore<TUser> at constructor. It does not have an IUserRoleStore<TUserRole> which I imagine would need to be accessed to determine whether UserManager.IsInRoleAsync(string, string) or not. I'm thinking UserStore's implementation would have an IsInRoleAsync(string, string) function as well (then it