Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
     }
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 7
0
 internal ConnectionWrapper(DBTransaction pTransaction)
 {
     _connection  = pTransaction.InnerTransaction.Connection;
     _transaction = pTransaction;
 }
Ejemplo n.º 8
0
 internal ConnectionWrapper(SQLiteConnection pConnection)
 {
     _connection  = pConnection;
     _transaction = null;
 }