public static void LoadSqliteDatabase(IDbPath dbPath) { string path = dbPath.GetSqliteDbPath(); var dbConnection = new SQLiteAsyncConnection(path); sqliteConnection = dbConnection; dbConnection.CreateTableAsync <NetRadio>(CreateFlags.None); }
public WatchedExecutionContext(IDbPath dbPath) { _dbPath = dbPath; }
public WatchedExecutionRepository(IDbPath dbPath) { _dbPath = dbPath; }
public async static void Initialize(IDbPath dbPath) { raw.SetProvider(new SQLite3Provider_e_sqlite3()); using (var db = new WatchedExecutionContext(dbPath)) await db.Database.EnsureCreatedAsync(); }