Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created May 15, 2020 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavilanch/decbc53a011e62f7169258876af610d4 to your computer and use it in GitHub Desktop.
Save gavilanch/decbc53a011e62f7169258876af610d4 to your computer and use it in GitHub Desktop.
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