Strongly typed datasets vs. weakly typed datasets

Madiha picture Madiha · Feb 7, 2011 · Viewed 9.8k times · Source

What is meant by strongly typed datasets in .Net? Can anybody explain with a clear and brief example?

And also, what is the difference between strongly typed and weakly typed datasets?

Answer

Henk Holterman picture Henk Holterman · Feb 7, 2011

Strongly Typed Datasets are generated on the basis of a Db Schema. They consists of classes derived form DataSet, DataTable and DataRow. Db Columns become correctly typed properties of the TableRow derived class.

An Untyped Dataset simply means the direct use of Dataset, not of a descendant. All column access has to be type-cast.

There is no such thing as a Weakly Typed Dataset.