Created
May 15, 2020 14:15
-
-
Save gavilanch/decbc53a011e62f7169258876af610d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var listado = await (from user in context.Users | |
join userRoles in context.UserRoles on user.Id equals userRoles.UserId | |
join role in context.Roles on userRoles.RoleId equals role.Id | |
select new { UserId = user.Id, UserName = user.UserName, RoleId = role.Id, RoleName = role.Name }) | |
.ToListAsync(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment