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

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.