Strongly typed datasets vs. weakly typed datasets

前端 未结 4 1150
后悔当初
后悔当初 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 01:55

    I'm guessing that the distinction goes like so:

    Strongly typed datasets are where the dataset knows the type associated with each column at or before the dataset is filled.

    Weakly typed datasets force the dataset to guess what the type might be. In cases where a column might be null OR a number, the dataset might incorrectly guess that the intended type is a string and not a nullable int.

提交回复
热议问题