src/Shared/EntityFramework/DbContextTransaction.cs
/// <summary>
/// Releases the resources used by this transaction object
/// </summary>
/// <param name="disposing">
/// <c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.
/// </param>
Releases the resources used by this transaction object
Releases the resources used by this transaction object
protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (!_isDisposed)
                {
                    _connection.ClearCurrentTransaction();
                    _entityTransaction.Dispose();
                    if (_shouldCloseConnection)
                    {
                        if (ConnectionState.Closed != _connection.State)
                        {
                            _connection.Close();
                        }
                    }
                    _isDisposed = true;
                }
            }
        }
protected virtual void Dispose ( bool disposing ) { if ( disposing ) { if ( ! _isDisposed ) { _connection . ClearCurrentTransaction ( ) ; _entityTransaction . Dispose ( ) ; if ( _shouldCloseConnection ) { if ( ConnectionState . Closed != _connection . State ) { _connection . Close ( ) ; } } _isDisposed = true ; } } }
Releases the resources used by this transaction object
Releases the resources used by this transaction object
disposing
bool
None