1 public List<AlbumTable> getalldata() {
2 try {
3 using (var connection = new SQLiteConnection(Path.Combine(dir.AbsolutePath, "album.db"))) {
4 return connection.Table<AlbumTable>().ToList();
5 }
6 }
7 catch (SQLiteException ex) {
8 return null;
9 }
10 }