override public void Open() { InternalConnection.Open(); if (!m_autoCommit) { GXLogging.Debug(log, "Open connection InternalConnection.BeginTransaction() "); m_transaction = InternalConnection.BeginTransaction(IsolationLevel.ReadCommitted); } else { m_transaction = null; } }
private void CreateInternalConnection() { InternalConnection = GetActualConnection(); if (InternalConnection.State == ConnectionState.Closed) { InternalConnection.Open(); } if (WithTransaction) { var extTr = GetActualTransaction(); InternalTransaction = extTr ?? InternalConnection.BeginTransaction(); } }
public override IDbTransaction BeginTransaction(IsolationLevel isoLevel) { try { IDbTransaction trn = InternalConnection.BeginTransaction(isoLevel); return(trn); } catch (Exception e) { GXLogging.Warn(log, "BeginTransaction Error ", e); IDbTransaction trn = InternalConnection.BeginTransaction(IsolationLevel.Unspecified); if (trn.IsolationLevel != isoLevel) { GXLogging.Error(log, "BeginTransaction Error, could not open new transaction isoLevel=" + isoLevel, e); throw new GxADODataException("Begin transaction error in informix", e); } return(trn); } }
override public void Open() { try { InternalConnection.Open(); if (!m_autoCommit) { m_transaction = InternalConnection.BeginTransaction(m_isolationLevel); } else { m_transaction = null; } } catch (Exception e) { GXLogging.Error(log, "Return GxConnection.Open Error ", e); throw (new GxADODataException(e)); } }
public override void TransactionStart() { InternalTransaction = InternalConnection.BeginTransaction(); }