O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Typed DataSet

A typed DataSet is a class that derives from a DataSet class and inherits all the methods, events, and properties of DataSets. In other words, it looks and acts the same as a DataSet. A typed DataSet also provides strongly typed methods, events, and properties. All this translates to being able to access (in your code) the tables and columns by name, instead of using collection-based methods. In addition, Visual Studio .NET code editors use the typed DataSet to help automatically complete lines as you physically type a line of code. As previously stated, the strong typing of DataSets also contributes to catching type mismatch errors at compile time as opposed to at runtime. In the next section, we will be generating the XML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required