Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. The nested query is not supported. Operation1='Case' Operation2='Collect'
  2.  
  3. IQueryable<Map.League> v = from ul in userLeagues
  4. select new Map.League
  5. {
  6. id = ul.LeagueID,
  7. seasons = inc.Seasons ? (from ss in ul.Standings
  8. where ss.LeagueID == ul.LeagueID
  9. select new Map.Season
  10. {
  11. seasonId = ss.Season.SeasonId,
  12. seasonName = ss.Season.SeasonName
  13. }).ToList() : null,
  14. };
  15.  
  16. seasons = (from ss in ul.Standings
  17. where ss.LeagueID == ul.LeagueID
  18. select new Map.Season
  19. {
  20. seasonId = ss.Season.SeasonId,
  21. seasonName = ss.Season.SeasonName
  22. }).Distinct(),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement