Solved

Linq to SQL Union/Concat error?

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

10 Experts available now in Live!

Get 1:1 Help Now