How to use LINQ to DATASET
LINQ
3
Posts
3
Posters
2
Views
1
Watching
-
This is Gaurav.I am new in using linq please some one tell me how to use linq to dataset.
-
jaja :laugh: :laugh: that's the best page I've ever seen! found everything...
//ds = DataSet with 1 table...
//cust = var to asign the Data...
//c.Field("customerid") = customerid is a string value of the table 0 of the DS... and companyname too
var custs =
from c in ds.Tables[0].ToQueryable()
select new
{
cid = c.Field("customerid"),
co = c.Field("companyname")
};so... what have you expected? Is the same LINQ to SQL... ;)