public void OnRollbackAll() { if (_sub != null) { _sub.OnRollbackAll(); _sub = null; } _status = SqlTransactionStatus.Rollbacked; }
public void RollbackAll() { if (_status != SqlTransactionStatus.Opened) { throw new InvalidOperationException(); } if (_sub != null) { _sub.OnRollbackAll(); _sub = null; } _status = SqlTransactionStatus.Rollbacked; _sqlTransaction.Rollback(); _sqlTransaction.Dispose(); _c.OnMainClosed(); }