I used sqlite-net library and I was creating sqlite connection similar to this : 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 . 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.
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.
To avoid confusion, it would be better if you specified explicitly the package you mean, including the link to it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.