Hour 20. Working with Typed DataSets

for RuBoard

Hour 20. Working with Typed DataSet s

ADO.NET code has made some great strides forward in the context of typing. One such major stride is in the ability to access the data held in the DataSet through a "strongly typed" metaphor. This may not seem like such a big deal at first glance, but when compared to the old " weakly typed" approach of vintage ADO, it is more than a pleasure to work with. In particular, you can now access the typed DataSet 's tables and columns with more simplified and user -friendly code. Using typed DataSet s also yields better code coming out of the chute because any previously unknown runtime typing issues come out at compile time and not at runtime (as runtime errors, nasty indeed!). Microsoft also throws in the XML Schema Definition tool (XSD.exe ”as part of the .NET Framework SDK) that generates typed DataSet s and has embedded the process of generating typed DataSet s as standard practice in Visual Studio .NET. The rest is up to you.

In this hour, you will learn the following topics:

  • A more detailed discussion of the typed DataSet

  • How to generate typed DataSet s with XSD.exe

  • How to generate typed DataSet s in VS .NET

  • Using annotations with typed DataSet s for even better code

  • Typical programming with typed DataSet s

for RuBoard


Sams Teach Yourself ADO. NET in 24 Hours
Sams Teach Yourself ADO.NET in 24 Hours
ISBN: 0672323834
EAN: 2147483647
Year: 2002
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net