Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB, C#, and VFP data handling examples
Message
From
04/05/2007 16:14:49
 
 
To
29/04/2007 23:15:50
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01215120
Message ID:
01222611
Views:
34
your preference for Typed DataSets rules in April 2007...

In LINQ to DataSets (as of today), if you query against an untyped datatable...
var Query = 
   from rowData in dtWorkers.AsEnumerable() 
      where rowData.Field<string>("FirstName") == "Kevin" 
       || rowData.Field<decimal>("Salary") > 90000
 select rowData;
If you query against a typed datatable...
var Query = 
   from rowData in dtWorkers.AsEnumerable() 
      where rowData.FirstName == "Kevin" 
       || rowData.Salary > 90000
 select rowData;
Which would you prefer?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform