var query = from r in dataTable.AsEnumerable()
where (r.Field<double?>(dataTable.Columns[0]).Equals(invoiceNo))
select new
{
invoice = r.Field<double>(dataTable.Columns[0]),
name = r.Field<string>(dataTable.Columns[1]),
emp_id = r.Field<double>(dataTable.Columns[2]),
won = r.Field<double>(dataTable.Columns[3]),
expenses = r.Field<double>(dataTable.Columns[4]),
};
これは、dataTable からすべてのデータを読み取る linq クエリです。
I want the query to be converted again into a datatable.Is it possible?