111,125
社区成员
发帖
与我相关
我的任务
分享 using (TransactionScope UpdateTrans = new TransactionScope())
{
try
{
this.dataTable1TableAdapter.Adapter.Update(this.DataSet1.DataTable1);
this.dataTable2TableAdapter.Adapter.Update(this.DataSet1.DataTable2);
UpdateTrans.Complete();
}
catch
{
MessageBox.Show("数据更新错误");
}
}