Datatable vs Dataset

后端 未结 7 2079
失恋的感觉
失恋的感觉 2020-11-29 20:02

I currently use a DataTable to get results from a database which I can use in my code.

However, many example on the web show using a DataSet instead and accessing th

7条回答
  •  孤城傲影
    2020-11-29 20:27

    in 1.x there used to be things DataTables couldn't do which DataSets could (don't remember exactly what). All that was changed in 2.x. My guess is that's why a lot of examples still use DataSets. DataTables should be quicker as they are more lightweight. If you're only pulling a single resultset, its your best choice between the two.

提交回复
热议问题