Homer
Homer

Reputation: 7826

LINQ to Object to DataSet

Can I do a LINQ Join from an List to a DataSet? Are there any caveats to doing this?

Upvotes: 1

Views: 339

Answers (1)

Dan Fitch
Dan Fitch

Reputation: 2539

There are obvious performance problems ahead, depending on the size of each side of the join, so the real caveat is scale.

You won't have to do any converting, you can select rows out of the dataset/table as you would normally with LINQ and just include an "on" clause to tell it how to compare a row to your List<T>.

Upvotes: 1

Related Questions