📜  从 LINQ 查询结果集中填充 DataSet 或 DataTable C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.281000             🧑  作者: Mango

代码示例1
IEnumerable query =
    from order in orders.AsEnumerable()
    where order.Field("OrderDate") > new DateTime(2001, 8, 1)
    select order;

// Create a table from the query.
DataTable boundTable = query.CopyToDataTable();