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(); } }
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)); } }
protected override void OnOpen() { InternalConnection.Open(); }