Answers for "Filling a DataSet or a DataTable from a LINQ query result set C#"

C#
0

Filling a DataSet or a DataTable from a LINQ query result set C#

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

// Create a table from the query.
DataTable boundTable = query.CopyToDataTable<DataRow>();
Posted by: Guest on July-28-2021

Code answers related to "Filling a DataSet or a DataTable from a LINQ query result set C#"

C# Answers by Framework

Browse Popular Code Answers by Language