Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Services
  2. .Where(s => s.Facilities.Any(f => f.Name == "Sample"))
  3. .GroupBy(s => s.Type)
  4. .Select(g => new { FacilityName = g.Key, Count = g.Count() })
  5.  
  6. Services
  7. .Select(s => new { Id = s.Id, Type = s.Type, Facilities = s.Facilities })
  8. .Where(s => s.Facilities.Any(f => f.Name == "Sample"))
  9. .GroupBy(s => s.Type)
  10. .Select(g => new { FacilityName = g.Key, Count = g.Count() })
  11.  
  12. Services
  13. .Select(s => new { Id = s.Id, Type = s.Type, Facilities = s.Facilities })
  14. //.Where(s => s.Facilities.Any(f => f.Name == "Sample"))
  15. .GroupBy(s => s.Type)
  16. .Select(g => new { FacilityName = g.Key, Count = g.Count() })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement