Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. /*
  2.  
  3. */         
  4.  
  5.  
  6. return _dbContext.GamePlatforms
  7.                    .Include(x => x.Game)
  8.                    .GroupBy(x => x.GameId)
  9.                    .Select(g =>
  10.                            new GroupedGamePlatform()
  11.             {
  12.                 GameId = g.Key, Platforms = g.Select(x => x.Platform).ToList()
  13.             })
  14.             .ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement