protected override void PopTransaction(bool commit) { if (this.undoService != null) { IUndoTransaction undoTransaction = this.transactions.Pop(); if (commit) { undoTransaction.Commit(); } else { undoTransaction.Cancel(); } } else { base.PopTransaction(commit); } }
public void Cancel1() { Create(haveRealTransaction: false); _transaction.Cancel(); }