private async void Window_Loaded(object sender, RoutedEventArgs e) { databaseObject = new Database(Database.GetDatabasePath()); //await db.Init(); AsyncTableQuery<PersonalInfo> atqu = databaseObject.Table<PersonalInfo>(); List<PersonalInfo> personInfo = await atqu.ToListAsync(); this.DataContext = personalInfoObject; }
public async void Window_Loaded(object sender, RoutedEventArgs e) { bi= new BackgroundInfo(); databaseObject = new Database(Database.GetDatabasePath()); await databaseObject.Init(); AsyncTableQuery<BackgroundInfo> atqu2 = databaseObject.Table<BackgroundInfo>(); List<BackgroundInfo> biObject= await atqu2.ToListAsync(); this.DataContext = bi; bi.Email = personalInfoObject.Email; }