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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access