Esempio n. 1
0
        public static void LoadSqliteDatabase(IDbPath dbPath)
        {
            string path         = dbPath.GetSqliteDbPath();
            var    dbConnection = new SQLiteAsyncConnection(path);

            sqliteConnection = dbConnection;

            dbConnection.CreateTableAsync <NetRadio>(CreateFlags.None);
        }
Esempio n. 2
0
 public WatchedExecutionContext(IDbPath dbPath)
 {
     _dbPath = dbPath;
 }
Esempio n. 3
0
 public WatchedExecutionRepository(IDbPath dbPath)
 {
     _dbPath = dbPath;
 }
Esempio n. 4
0
 public async static void Initialize(IDbPath dbPath)
 {
     raw.SetProvider(new SQLite3Provider_e_sqlite3());
     using (var db = new WatchedExecutionContext(dbPath))
         await db.Database.EnsureCreatedAsync();
 }