3

我有一个 WIndows Phone 8.1 应用程序,我想在这里使用 SQLite.Net PCL 库 forked oysteinkrog:https ://github.com/oysteinkrog/SQLite.Net-PCL 但是,当我尝试创建一个新连接时,我没有创建所需的所有属性SQLiteConnectionWithLock
我发现这个:

var conn = new SQLiteAsyncConnection(new Func<SQLiteConnectionWithLock>(()=>new SQLiteConnectionWithLock(new SQLitePlatformWinRT(), new SQLiteConnectionString(databasePath, storeDateTimeAsTicks: false))));

但是新的 SQLitePlatformWinRT 不适用,我似乎无法找到 WP8.1 的替代品,有什么
想法可以解决这个问题吗?

4

1 回答 1

-1

它与手机兼容 WinRT,正如他们在这里写的那样: SQLite.Net.Platform for Windows Phone 8.1 并在此评论中:SQLite.Net-PCL Connection not find the DB。所以你不需要担心它,只用作其他情况。

编辑:确保您从 sqlite.org 手动为 windows phone 8.1 WinRT 添加了 sqlite3.dll。

于 2015-12-30T23:07:22.140 回答