DataSetr ds = FillDataset();
DataTable customerTable = ds.Tables["Customers"];
// DataTable does not implement IEnumerable
var cutomers = from c in customerTable.AsEnumerable()
where c.Field("Country") == "USA"
select new
{
CustomerID = c.Field("CustomerID"),
ContractName = c.Field("ContractName")
{;
No comments:
Post a Comment