I'm trying to get a SqLite in my xamarin forms app like shown in this sample
My android and iOS works fine. but windows got some problems. It's like it can't find the type "SQLiteConnection" in the SQLite namespace. and can't find anything about this. I'm target Windows Phone 8.1 and using Xamarin Forms 1.5 (Course of other elements i can't upgrade to Forms 2)
This is my windows Implementation
public class SQLite_WinPhone : ISQLite
{
public SQLite_WinPhone() { }
protected override SQLite.SQLiteConnection GetConnection()
{
var sqliteFilename = "TodoSQLite.db3";
string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);
// Create the connection
var conn = new SQLite.SQLiteConnection(path);
// Return the database connection
return conn;
}
}
have any of you out there bump into this before?
Aucun commentaire:
Enregistrer un commentaire