Ejemplo n.º 1
0
        public void Rollback()
        {
            if (!Active)
            {
                throw new Exception("Transaction is closed");
            }
            if (Disposed)
            {
                throw new Exception("Transaction has been disposed");
            }

            try
            {
                transaction.Rollback();
            }
            finally
            {
                try
                {
                    transaction.Dispose();
                }
                finally
                {
                    transaction = null;
                    active      = false;
                    Disposed    = true;
                }
            }
        }
Ejemplo n.º 2
0
 public LinqToDBTransactionWrapper(LinqToDB.Data.DataConnectionTransaction transaction)
 {
     this.transaction = transaction;
 }