Concat Two IQueryables with Anonymous Types?
I've been wrestling with this a little while and it's starting to look like it may not be possible. I want to Concat() two IQueryable s and then execute the result as a single query. I tried something like this: var query = from x in ... select new { A = ... B = ... C = ... }; var query2 = from y in ... select new { A = ... B = ... C = ... }; var query3 = query.Concat(query2); However, the last line gives me the following error: 'System.Linq.IQueryable' does not contain a definition for 'Concat' and the best extension method overload 'System.Linq.ParallelEnumerable.Concat(System.Linq