SQLite.Net PCL support / workaround for Windows Phone 8.1
I have a WIndows Phone 8.1 app and I want to use the PCL library SQLite.Net forked oysteinkrog here: https://github.com/oysteinkrog/SQLite.Net-PCL
However, when I try to create a new connection, I don't have all the properties required to build SQLiteConnectionWithLock
I found this:
var conn = new SQLiteAsyncConnection(new Func<SQLiteConnectionWithLock>(()=>new SQLiteConnectionWithLock(new SQLitePlatformWinRT(), new SQLiteConnectionString(databasePath, storeDateTimeAsTicks: false))));
But the new SQLitePlatformWinRT doesn't apply and I can't seem to find alternatives for WP8.1
Any thoughts on a workaround for this?
source to share
It is WinRT compatible with the phone as they wrote it here: SQLite.Net.Platform for Windows Phone 8.1 and in this comment: SQLite.Net-PCL Connection doesn't find DB . So you don't need to worry about it, only use it as other cases.
EDIT: Make sure you add sqlite3.dll from sqlite.org for Windows Phone 8.1 WinRT manually.
source to share