Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

pfieldname

linq query to get records and copy to datatable
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: http://feeds.dzone.com/~r/dzone/snippets/~3/2ydBYwNuC1s/14495

 


Taxonomy by Zaragoza Online