TCustomADODataSet::UpdateBatch
将未处理的更新保存到数据库。
enum TAffectRecords { arCurrent, arFiltered, arAll, arAllChapters };
void __fastcall UpdateBatch(TAffectRecords AffectRecords = arAll);
函数说明;
调用 UpdateBatch 函数将对数据集dataset所有修改写入数据库文件。
in batch update mode to the associated database. The AffectRecords parameter may be any one of the following TAffectRecords values: Option Meaning arCurrent Only the updates for the current row are applied. arFiltered Only updates for rows matching the current filter are applied. arAll Updates for all rows are applied. arAllChapters Update affects all chapters (ADO chapters) Note: To use batch updating, the CursorType property of the dataset component must be either ctKeySet (the default) or ctStatic and the LockType property must be ltBatchOptimistic.
暂无评论内容