In a mono project I want to create a database and use that, and Sqlite-Net is optimzied for mono so would go with that. But I cant find any documentation how to create a database with it. So I just try to connect to it and hope it will say "Database dont exists, I will create one" but I get an exception so that approch dont work
readonly string _pathToDatabase = "Meter_db.db3";
public InstallMeterRepository()
{
if(!File.Exists(_pathToDatabase))
{
using (var conn = new SQLite.SQLiteConnection(_pathToDatabase))
{
conn.CreateTable<InstalledMeter>();
}
}
}