Esempio n. 1
0
        public void Commit()
        {
            if (Transaction == null) return;

            Transaction.Commit();
            var trans = new NonTransaction(Transaction.Connection);
            Transaction.Dispose();
            Transaction = trans;
        }
Esempio n. 2
0
        public void Rollback()
        {
            if (Transaction == null)
            {
                return;
            }

            Transaction.Rollback();
            var trans = new NonTransaction(Transaction.Connection);

            Transaction.Dispose();
            Transaction = trans;
        }