Inheritance: ICommerceDbTransaction
Beispiel #1
0
        public ICommerceDbTransaction BeginTransaction()
        {
            ThrowIfDisposed();

            if (_currentTransaction == null)
            {
                _currentTransaction = new CommerceDbTransaction(DbContext.Database.BeginTransaction(), this);
            }

            return(_currentTransaction);
        }
Beispiel #2
0
        public ICommerceDbTransaction BeginTransaction(System.Data.IsolationLevel isolationLevel)
        {
            ThrowIfDisposed();

            if (_currentTransaction == null)
            {
                _currentTransaction = new CommerceDbTransaction(DbContext.Database.BeginTransaction(isolationLevel), this);
            }

            return(_currentTransaction);
        }
Beispiel #3
0
 internal void ClearCurrentTransaction()
 {
     _currentTransaction = null;
 }