Does Linq to Excel support joins?

56 views
Skip to first unread message

Nickname unavailable

unread,
Nov 23, 2009, 12:34:35 AM11/23/09
to Linq To Excel
I'm interested in joining two sheets together, but cannot figure out
the Linq syntax. Is this possible?

Thanks, Nat

Nickname unavailable

unread,
Nov 23, 2009, 12:56:36 PM11/23/09
to Linq To Excel
I've somewhat figured this out on my own. I figured out the syntax and
got the message the LinqToExcel doesn't support joins. But if I
convert one or both of the tables into a list first, then joins work,
provided that the LinqToExcel table is on the right side of the join.

Nat

Paul Yoder

unread,
Nov 23, 2009, 1:19:14 PM11/23/09
to linqt...@googlegroups.com
Nat,

You're correct that Linq to Excel does not natively support joins. However, as you have found out, you can use Linq to Excel to query both tables and convert each query into a list and then you can use linq joins on the lists.

Thanks for letting us know how you got joins working in Linq to Excel.

Paul
Reply all
Reply to author
Forward
0 new messages