Ejemplo n.º 1
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }
            if (_disposed)
            {
                return;
            }

            if (_transaction != null)
            {
                _transaction.Dispose();
                _transaction = null;
            }
            if (_entityFrameworkContext != null)
            {
                _entityFrameworkContext.Dispose();
                _entityFrameworkContext = null;
            }
            _disposed = true;
        }