コード例 #1
0
 public void Dispose()
 {
     if (null != _wrapper)
     {
         _wrapper.Dispose();
         _wrapper = null;
     }
     if (null != _sqLiteProvider)
     {
         _sqLiteProvider.WriteDebug(String.Format("-{0} Closing session {0}", _index));
         _sqLiteProvider = null;
     }
 }
コード例 #2
0
ファイル: SQLiteDrive.cs プロジェクト: modulexcite/pash-1
        internal SQLiteConnectionWrapper CreateConnectionWrapper()
        {
            SQLiteConnectionWrapper wrapper = null;

            if (IsPersistentConnection)
            {
                if (null == _connection)
                {
                    _connection = CreateNewConnection();
                }

                wrapper = new PersistentSQLiteConnectionWrapper(_connection);
            }
            else
            {
                _connection = CreateNewConnection();
                wrapper     = new TransientSQLiteConnectionWrapper(_connection);
            }

            return(wrapper);
        }
コード例 #3
0
ファイル: SQLiteProvider.cs プロジェクト: nickchal/pash
 public void Dispose()
 {
     if( null != _wrapper )
     {
         _wrapper.Dispose();
         _wrapper = null;
     }
     if (null != _sqLiteProvider)
     {
         _sqLiteProvider.WriteDebug(String.Format("-{0} Closing session {0}", _index));
         _sqLiteProvider = null;
     }
 }