Datatable vs Dataset

后端 未结 7 2081
失恋的感觉
失恋的感觉 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:51

    There are some optimizations you can use when filling a DataTable, such as calling BeginLoadData(), inserting the data, then calling EndLoadData(). This turns off some internal behavior within the DataTable, such as index maintenance, etc. See this article for further details.

提交回复
热议问题