[英]How to use Sqlite-net Extensions for Windows 7?
I used sqlite-net library and I was creating sqlite connection similar to this : var db = new SqliteConnection(path);
我使用了sqlite-net库,并且正在创建类似于此的sqlite连接:
var db = new SqliteConnection(path);
But Sqlite-net Extensions demand using Sqlite.Net.SqliteConnection
that needs as a first parameter ISQlitePlatform
and I didn't know what should I pass there for Windows 7 platform . 但是Sqlite-net Extensions要求使用
Sqlite.Net.SqliteConnection
作为第一个参数ISQlitePlatform
并且我不知道该为Windows 7平台传递什么。 https://github.com/praeclarum/sqlite-net https://github.com/praeclarum/sqlite-net
You need to add the Win32-specific package to your solution, SQLite.Net PCL - Win32 Platform and pass an instance of SQLitePlatformWin32
to the connection constructor. 您需要将Win32特定的软件包添加到解决方案SQLite.Net PCL-Win32平台中 ,并将
SQLitePlatformWin32
的实例SQLitePlatformWin32
给连接构造函数。
Please note that SQLite.Net PCL
is relatively obscure at this time, with half the downloads of the SQLite-net package by Tim Heuer, and 1/10 of the downloads of what most people consider SQLite.Net
, the System.Data.SQLite package. 请注意,
SQLite.Net PCL
相对模糊,Tim Heuer下载了SQLite-net软件包的一半,而大多数人认为SQLite.Net
, System.Data.SQLite的下载量的1/10。包。
To avoid confusion, it would be better if you specified explicitly the package you mean, including the link to it. 为避免混淆,最好明确指定要包含的包,包括指向它的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.