I am making an app with Xamarin. I try to use database, recommendation (first and only options when Googling) is to use SQLite.
I created Database class:
public class Database
{
private readonly SQLiteAsyncConnection db;
public Database(string dbPath)
{
db = new SQLiteAsyncConnection(dbPath);
db.CreateTableAsync<Patient>();
}
public Task<List<Patient>> ReadPatients()
{
return db.Table<Patient>().ToListAsync();
}
// returns number of updated records
public Task <int> UpdatePatient(Patient patient)
{
return db.UpdateAsync(patient);
}
}
I try to use ReadPatients() but there is no point in that because I havent created any tables, I dont know how to see them and where to find them? How can I create tables, configure fields and foreign keys for them and see their content? I am using Visual Studio 2019.
UPDATE
To be clear I would like to see table not in a console, or just to know theoretically that it existcs, but I want to see a list of tables (like in PL SQL developer, PHPMYADMIN) where youcan press on a table, select from it and see nice clear view:
I am starting to think its not really possible with SQLite? What else could I use then?