Dot Net Interview Questions and Tutorials
By Dr. Rajesh Rolen
Monday, July 18, 2011
LINQ over Datatable
using below code we can use LINQ to query Datatables:
var res = from p in dt.AsEnumerable()
where p.Field< string >("YourFieldName") == "Value" || p.Field < string > ("YourFieldName") == "Value"
select p;
No comments:
Post a Comment