public object GetConnection() { string path = _databasePathProvider.GetDatabasePath(); SQLiteConnection connection = (!_databasePathProvider.DatabaseFileExists(path)) ? CreateDataBase(path) : new SQLiteConnection(path); return(connection); }
public object GetConnection() { string path = _databasePathProvider.GetDatabasePath(); if (!_databasePathProvider.DatabaseFileExists(path)) { CreateDataBase(path); } return(CreateNewConnection(path)); }