I created a database with SqLite-net, so:
SQLite.SQLiteAsyncConnection conn = new SQLite.SQLiteAsyncConnection(Path.Combine(ApplicationData.Current.LocalFolder.Path, "musei.db"), true);
await conn.CreateTableAsync<Musei>();
await conn.InsertAsync(muss);
var query = conn.Table<Musei>();
var result = await query.ToListAsync();
"MUSEI" is my class.
Application contains a list of objects Musei. List "muss" is my object of MUSEI
In another method, I would now check if my database contains or not the object "MUSEUi" selected. how can I do?
Aucun commentaire:
Enregistrer un commentaire