Solved

Linq to SQL Union/Concat error?

Posted on 2008-10-08
1
1,260 Views
Last Modified: 2013-11-11
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
Comment
Question by:jzimmerman
1 Comment
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 250 total points
ID: 22668561
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Achieve json result 2 65
Syntax error 9 45
Connection String 16 43
C# Single Form 8 27
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now