Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strongly typed datasets vs. weakly typed datasets

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?

like image 403
Madiha Avatar asked Feb 07 '11 16:02

Madiha


1 Answers

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.

like image 132
Henk Holterman Avatar answered Nov 07 '22 21:11

Henk Holterman