Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (_Disposed == false && disposing)
     {
         _TransactionManager.ExitTransactionScope(_IsCompleted);
         _TransactionManager.Dispose();
         _Disposed = true;
     }
 }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing && _Connection != null)
            {
                if (_Connection.State != ConnectionState.Closed)
                {
                    _TransactionManager.Dispose();
                    _Connection.Dispose();                                      // Close()
                }

                _Connection = null;
            }
        }