This article is tagged with:
Xamarin sqlite get each row of table
and mysql
xamarin sqlite get each row of table
public List<albumtable> getalldata() {
try {
using (var connection = new SQLiteConnection(Path.Combine(dir.AbsolutePath, "album.db"))) {
return connection.Table<albumtable>().ToList();
}
}
catch (SQLiteException ex) {
return null;
}
}</albumtable></albumtable>