Sum List of IQueryable

Viewed 966

Given a list IQueryables, how can you sum the count of each, without having multiple statements executed in the database?

 return queries
               .Sum(qy=> qy.Count());

The above works, but hits the database for each query.

4 Answers
Related