I'm trying create a database on my application (Xamarin.Android). I'm using this tutorial http://ift.tt/1Ijk6hm
but the site don't explicate about parameter to path on
private string createDatabase(string path)
{
try
{
var connection = new SQLiteAsyncConnection(path);{
connection.CreateTableAsync<person>();
return "Database created";
}
catch (SQLiteException ex)
{
return ex.Message;
}
}
Can anyone help me, with this parameter?
I try with "/app1/databases/dbPEduc.db" but show the Exception:
SQLite.SQLite3+Result.CannotOpen
Aucun commentaire:
Enregistrer un commentaire