I just updated to ASP.NET Identity EntityFramework 2.0.0-beta1 and got a compilation errors for my Roles classes. Maybe somebody can give me some clue how to get all users f
The accepted answer returns CustomUserRoles. If you are looking for the list of ApplicationUsers, try:
public IList GetApplicationUsersInRole(string roleName)
{
var selectedUserIds = from role in roleManager.Roles
where role.Name == roleName
from user in role.Users
select user.UserId;
// this _users comes from the ApplicationDbContext.ApplicationUser
return _users.Where(applicationUser => selectedUserIds.Contains(applicationUser.Id)).ToList();
}