Datatable.acceptchanges()提交的数据表 [英] Datatable.acceptchanges() commits data to the table

查看:280
本文介绍了Datatable.acceptchanges()提交的数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Datatable.acceptchanges提交的数据表...手段

Datatable.acceptchanges commits data to the table...means

将它插入数据表..或数据表?

will it insert data to the table ..or datatable?

推荐答案

的AcceptChanges的目的,()是为了让数据表知道它的数据已被保存到数据库中。在数据表中的所有数据行都有自己row.RowState设置为DataRowState.Unchanged。

The purpose of AcceptChanges() is to let the DataTable know that its data has been saved to the database. All DataRows in the DataTable have their row.RowState set to DataRowState.Unchanged.

有不将数据保存到数据库中。即分开进行。

It does not save the data to the database. That is done separately.

这篇关于Datatable.acceptchanges()提交的数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆