public void Dispose() { if (null != _wrapper) { _wrapper.Dispose(); _wrapper = null; } if (null != _sqLiteProvider) { _sqLiteProvider.WriteDebug(String.Format("-{0} Closing session {0}", _index)); _sqLiteProvider = null; } }
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); }
public void Dispose() { if( null != _wrapper ) { _wrapper.Dispose(); _wrapper = null; } if (null != _sqLiteProvider) { _sqLiteProvider.WriteDebug(String.Format("-{0} Closing session {0}", _index)); _sqLiteProvider = null; } }