O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

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

Strongly-Typed DataSets

Up to this point, all examples using a DataSet class have used the untyped DataSet. This section discusses the strongly-typed DataSet. A strongly-typed DataSet is a DataSet class that descends from DataSet. It contains descendant DataTables and DataRows for the tables it contains. It extends the DataSet by providing properties, events, and methods that are named and strongly typed according to the tables it holds.

Strongly-typed DataSets are normally generated by the IDE or by using the xsd command-line tool included within the .NET SDK.

Advantages/Disadvantages

There are several advantages for using strongly-typed DataSets over untyped DataSets. They are

  • Writing code is easier to understand because strong names make sense, ...

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