码迷,mamicode.com
首页 > 其他好文 > 详细

DataSet key points

时间:2014-08-02 15:17:43      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:http   os   io   for   ar   div   res   table   

In a typical multiple-tier implementation, the steps for creating and refreshing a DataSet, and in turn, updating the original data are to:

  1. Build and fill each DataTable in a DataSet with data from a data source using a DataAdapter.

  2. Change the data in individual DataTable objects by adding, updating, or deleting DataRow objects.

  3. Invoke the GetChanges method to create a second DataSet that features only the changes to the data.

  4. Call the Update method of the DataAdapter, passing the second DataSet as an argument.

  5. Invoke the Merge method to merge the changes from the second DataSet into the first.

  6. Invoke the AcceptChanges on the DataSet. Alternatively, invoke RejectChanges to cancel the changes.

 

DataSet key points,布布扣,bubuko.com

DataSet key points

标签:http   os   io   for   ar   div   res   table   

原文地址:http://www.cnblogs.com/kevinygq/p/3886864.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!