SqlDataAdapter更新数据
时间:2021-07-01 10:21:17
帮助过:4人阅读
= dataSet.Tables[
"Customers"];
// First process deletes.
adapter.Update(table.Select(
null,
null, DataViewRowState.Deleted));
// Next process updates.
adapter.Update(table.Select(
null,
null, DataViewRowState.ModifiedCurrent));
// Finally, process inserts.
adapter.Update(table.Select(
null,
null, DataViewRowState.Added));
SqlDataAdapter更新数据
标签: