Ich installierte die Referenz für "SQLite für Universal-App-Plattform" in meinem Visual Studio 2015-Projekt, später habe ich das NuGet Paket "sqlite.net-pcl-silverlight"SQLiteConnection, C#
Ich versuche, die folgenden Zeilen installiert
string dbPath = Path.Combine(ApplicationData.Current.LocalFolder.Path, "Storage.sqlite");
SQLiteConnection DB = new SQLiteConnection(dbPath);
Es funktioniert nicht, aber ich fand, dass diese Zeile gültig ist:
SQLiteConnection DB = new SQLiteConnection(sqlitePlatform, dbPath);
Mein Problem ist, dass ich weiß nicht, was der Wert sqlitePlatform sein sollte ... Bitte hel p.
'var connection = neue SQLiteConnection (neue SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), Pfad)' sollte den Trick machen ... –
Hier finden Sie weitere Informationen: http://www.shenchauhan.com/ blog/2015/11/25/sqlite-and-uwp –
Vielen Dank, es funktioniert perfekt; SQLiteConnection (new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), Pfad) – Xavier