Strongly typed datasets vs. weakly typed datasets

前端 未结 4 1147
后悔当初
后悔当初 2021-01-12 01:21

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 wea

4条回答
  •  悲哀的现实
    2021-01-12 02:04

    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.

提交回复
热议问题