Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving Data from Strongly Typed Dataset
Message
De
14/02/2007 08:28:41
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
14/02/2007 08:21:21
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB.NET 1.1
Divers
Thread ID:
01195352
Message ID:
01195488
Vues:
26

Mike,
Not sure why intelli senese isnt working but would this work?
ds.tables("Rate").Row(0).item("NineMonthRate")


Yes, that was how I was doing it, but since I was using a strongly typed dataset I could do it like this:
ds.Rate(0).NineMonthRate
and avoid having to convert the result from object to decimal. Doing it this was also enables me to use intellisense, and will throw a compiler error if I change the structure of my dataset in the IDE and forget to change affected code.

To all who don't use strongly-typed datasets, I highly recommend them. They aren't that difficult once you figure out how to use them correctly, and there are many advantages.
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform