Sqlite on windows phone 8

Recently I downloaded win8 phone sdk and started create my test application. In the main project i have a System.Data.SQLite based classes and want to implement it in my windows phone app.

But System.Data.Sqlite package refuse to install with NuGet and says "Incompartible c# version" or something.

I have tried sqlite-wp80-winrt-3071500.vsix from http://www.sqlite.org/download.html, it installs ok but i even doesn't know how to refer the sqlite library? There is no such as ADO.Net adapter I suppose and I can't find exact library to refer in code.

In my test WP7 application I had implemented System.Data.Sqlite and it was working ok but what should I do with windows phone 8?

Please help me. May be it is a dumb question but I am stuck on it.


If you don't mind using an ORM instead of an ADO.NET provider, give sqlite-net-wp8 a try (just created it today for something I was working on).

sqlite-net-wp8 is a simple C++/CX wrapper around some sqlite3.dll exports that sqlite-net depends on. It allows sqlite-net to call into sqlite3.dll on Windows Phone 8 without having to use csharp-sqlite instead.

Follow the instructions in the README and see if it works for you. Please let me know if you run into any bugs and pull requests are welcome :)

链接地址: http://www.djcxy.com/p/95994.html

上一篇: 适用于Windows Phone 7.1和F#3.0的FSharp.Core

下一篇: Sqlite在Windows Phone 8上