コード例 #1
0
        public object GetConnection()
        {
            string           path       = _databasePathProvider.GetDatabasePath();
            SQLiteConnection connection = (!_databasePathProvider.DatabaseFileExists(path)) ? CreateDataBase(path) : new SQLiteConnection(path);

            return(connection);
        }
コード例 #2
0
        public object GetConnection()
        {
            string path = _databasePathProvider.GetDatabasePath();

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

            return(CreateNewConnection(path));
        }