|
Saturday, 28 January 2012 01:28 |
// linq query to get records and copy to datatable
var query = from p in ds.Tables["Id"].AsEnumerable()
where p.Field("ID") == "1" && p.Field("Name") == "test" select p;
if (query.Count() > 0)
{
dt = query.CopyToDataTable();
}
 Read more: |