コード例 #1
0
        public static void LoadSqliteDatabase(IDbPath dbPath)
        {
            string path         = dbPath.GetSqliteDbPath();
            var    dbConnection = new SQLiteAsyncConnection(path);

            sqliteConnection = dbConnection;

            dbConnection.CreateTableAsync <NetRadio>(CreateFlags.None);
        }
コード例 #2
0
 public WatchedExecutionContext(IDbPath dbPath)
 {
     _dbPath = dbPath;
 }
コード例 #3
0
 public WatchedExecutionRepository(IDbPath dbPath)
 {
     _dbPath = dbPath;
 }
コード例 #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();
 }