Linq to DataTable without enumerating fields
Posted
by Luciano
on Stack Overflow
See other posts from Stack Overflow
or by Luciano
Published on 2009-12-02T14:32:09Z
Indexed on
2010/04/13
3:02 UTC
Read the original article
Hit count: 418
Hi, i´m trying to query a DataTable object without specifying the fields, like this :
var linqdata = from ItemA in ItemData.AsEnumerable()
select ItemA
but the returning type is
System.Data.EnumerableRowCollection<System.Data.DataRow>
and I need the following returning type
System.Data.EnumerableRowCollection<<object,object>>
(like the standard anonymous type)
Any idea? Thanks
© Stack Overflow or respective owner