Exemplo 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);
        }
Exemplo n.º 2
0
 public WatchedExecutionContext(IDbPath dbPath)
 {
     _dbPath = dbPath;
 }
Exemplo n.º 3
0
 public WatchedExecutionRepository(IDbPath dbPath)
 {
     _dbPath = dbPath;
 }
Exemplo 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();
 }