Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB, C#, and VFP data handling examples
Message
De
04/05/2007 16:14:49
 
 
À
29/04/2007 23:15:50
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01215120
Message ID:
01222611
Vues:
31
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform