Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- SQLiteAsyncConnection conn = new SQLiteAsyncConnection(Path.Combine(ApplicationData.Current.LocalFolder.Path, "Database.db"), true);
- await conn.CreateTableAsync<Musei>();
- var Dbase = Path.Combine(ApplicationData.Current.LocalFolder.Path, "Database.db");
- var con = new SQLiteAsyncConnection(Dbase, true);
- var query = await con.Table<Musei>().OrderBy(x => x.NomeMuseo).ToListAsync();
- ListaPreferiti.Source = query;
- }
- catch (Exception)
- {
- NoPreferiti.Visibility = Visibility.Visible;
- PivotPreferiti.Visibility = Visibility.Collapsed;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement