Hour 20. Working with Typed DataSets

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 DataSets 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 ...

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.