1.本地事务
using System.Transactions; using (var ts = new TransactionScope(TransactionScopeOption.RequiresNew, new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted })) {
... ts.Complete(); }
1.本地事务
using System.Transactions; using (var ts = new TransactionScope(TransactionScopeOption.RequiresNew, new TransactionOptions { IsolationLevel = IsolationLevel.ReadCommitted })) {
... ts.Complete(); }