How to select all fields from datatable? ex.:
var common = from c in dt1.AsEnumerable()
join x in dt2.AsEnumerable() on c.Field<int>("ID") equals
x.Field<int>("ID")
select
new object[]
{
c["Col1"], x["NameCol1"], x["NameCol2"], x["NameCol3"], x["NameCol4"]
};
How to select all fields for x? (and if x has 20 colums I do not want to write the name for all the fields)
Maybe this helps: