[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1275
  • 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 SotoRetiredCommented:
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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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