Windows Phone 8.1 的 SQLite.Net PCL 支持/解决方法 [英] SQLite.Net PCL support / workaround for Windows Phone 8.1
问题描述
我有一个 WINdows Phone 8.1 应用程序,我想在这里使用 SQLite.Net PCL 库分叉 oysteinkrog:https://github.com/oysteinkrog/SQLite.Net-PCL但是,当我尝试创建新连接时,我没有创建 SQLiteConnectionWithLock
所需的所有属性我发现了这个:
I have a WIndows Phone 8.1 application and I want to use the SQLite.Net PCL library forked oysteinkrog here: https://github.com/oysteinkrog/SQLite.Net-PCL
However, when I'm trying to create a new connection I do not have all properties needed to create a SQLiteConnectionWithLock
I have found this:
var conn = new SQLiteAsyncConnection(new Func<SQLiteConnectionWithLock>(()=>new SQLiteConnectionWithLock(new SQLitePlatformWinRT(), new SQLiteConnectionString(databasePath, storeDateTimeAsTicks: false))));
但新的 SQLitePlatformWinRT 不适用,我似乎找不到 WP8.1 的替代品
对此有什么解决方法的想法吗?
But the new SQLitePlatformWinRT does not apply and I can't seem to find an alternative for WP8.1
Any thoughts on a workaround for this?
推荐答案
WinRT 与手机兼容,正如他们在此处所写:适用于 Windows Phone 8.1 的 SQLite.Net.Platform并在此评论中:SQLite.Net-PCL Connection not found the DB .所以你不用担心,只作为其他情况使用.
It's compatible the WinRT with the phone, as they wrote it here: SQLite.Net.Platform for Windows Phone 8.1 and in this comment: SQLite.Net-PCL Connection not finding the DB . So you don't need to worry about it, only use as other cases.
确保您从 sqlite.org 为 windows phone 8.1 WinRT 手动添加了 sqlite3.dll.
Make sure you added sqlite3.dll from sqlite.org for windows phone 8.1 WinRT manually.
这篇关于Windows Phone 8.1 的 SQLite.Net PCL 支持/解决方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!