public override AbsTransaction BeginTransaction()
 {
     if (_transaction != null && !_transaction.IsDisposed)
         throw new Exception("Transaction already in progress");
     SQLiteConnection cnn = new SQLiteConnection(_sConnectionString);
     cnn.Open();
     _transaction = new DBTransaction(cnn.BeginTransaction());
     return _transaction;
 }
        public override AbsTransaction BeginTransaction()
        {
            if (_transaction != null && !_transaction.IsDisposed)
            {
                throw new Exception("Transaction already in progress");
            }
            SQLiteConnection cnn = new SQLiteConnection(_sConnectionString);

            cnn.Open();
            _transaction = new DBTransaction(cnn.BeginTransaction());
            return(_transaction);
        }
 public void Dispose()
 {
     if (!_bIsDisposed)
     {
         if (_transaction == null || _transaction.IsDisposed)
         {
             if (_connection != null && _connection.State != System.Data.ConnectionState.Closed)
                 _connection.Close();
         }
         _connection = null;
         _transaction = null;
         _bIsDisposed = true;
     }
 }
Example #4
0
 public void Dispose()
 {
     if (!_bIsDisposed)
     {
         if (_transaction == null || _transaction.IsDisposed)
         {
             if (_connection != null && _connection.State != System.Data.ConnectionState.Closed)
             {
                 _connection.Close();
             }
         }
         _connection  = null;
         _transaction = null;
         _bIsDisposed = true;
     }
 }
 internal ConnectionWrapper(DBTransaction pTransaction)
 {
     _connection = pTransaction.InnerTransaction.Connection;
     _transaction = pTransaction;
 }
 internal ConnectionWrapper(SQLiteConnection pConnection)
 {
     _connection = pConnection;
     _transaction = null;
 }
Example #7
0
 internal ConnectionWrapper(DBTransaction pTransaction)
 {
     _connection  = pTransaction.InnerTransaction.Connection;
     _transaction = pTransaction;
 }
Example #8
0
 internal ConnectionWrapper(SQLiteConnection pConnection)
 {
     _connection  = pConnection;
     _transaction = null;
 }