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]),
};
这是我的 linq 查询,它从 dataTable 中读取所有数据。
I want the query to be converted again into a datatable.Is it possible?