如何使用 Windows 7 的 Sqlite-net 扩展?

How to use Sqlite-net Extensions for Windows 7?

我使用了 sqlite-net 库,并且我正在创建与此类似的 sqlite 连接: var db = new SqliteConnection(path); 但是 Sqlite-net Extensions 要求使用 Sqlite.Net.SqliteConnection 作为第一个参数 ISQlitePlatform 并且我不知道我应该为 Windows 7 platform 传递什么。 https://github.com/praeclarum/sqlite-net

您需要将特定于 Win32 的程序包添加到您的解决方案中,SQLite.Net PCL - Win32 Platform 并将 SQLitePlatformWin32 的实例传递给连接构造函数。

请注意SQLite.Net PCL此时比较晦涩,只有SQLite-net package by Tim Heuer, and 1/10 of the downloads of what most people consider SQLite.Net, the System.Data.SQLite包下载量的一半。

为避免混淆,最好明确指定您所指的包,包括 link。