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

            return(connection);
        }
Esempio n. 2
0
        public object GetConnection()
        {
            string path = _databasePathProvider.GetDatabasePath();

            if (!_databasePathProvider.DatabaseFileExists(path))
            {
                CreateDataBase(path);
            }

            return(CreateNewConnection(path));
        }