Solved

Linq to SQL Union/Concat error?

Posted on 2008-10-08
1
1,266 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 63

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 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