Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1274
  • Last Modified:

Linq to SQL Union/Concat error?

I am trying to append/join 2 Linq to SQL querys but am getting the following error:

Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<AnonymousType#1>' to 'System.Data.EnumerableRowCollection<AnonymousType#1>

Why is Linq to SQL changing the type on the Union/Concat?  How so I fix?

In the UI the user is able to select multiple XLS files of the same type to be processed at the same time.  So I am trying to append each XLS into one VAR using Linq to SQL.
0
jzimmerman
Asked:
jzimmerman
1 Solution
 
Fernando SotoCommented:
Other then the two collections are of different types and that one can not be implicitly converted to the other there is no way to tell unless you post the query itself and any pertinent code.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now