using ( System.Transactions.TransactionScope Transact = new TransactionScope()) { 执行数据库操作 Transact.Complete(); }