ly188:二话不说直接上代码
using (TransactionScope scope = new TransactionScope()) { // 本身业务 //下面是提交事务 scope.Complete(); }