/sqlite-net-wp8

A C++/CX wrapper for SQLite functions that sqlite-net depends on. Can be used as an alternative to csharp-sqlite on Windows Phone 8. This library is released under the MIT license.

Primary LanguageC++MIT LicenseMIT

sqlite-net-wp8

A C++/CX wrapper for SQLite functions that sqlite-net depends on.

This library can be used to directly call into sqlite3.dll on Windows Phone 8 from sqlite-net.

Requirements

Using sqlite-net-wp8

  • Install the sqlite-net-wp8 nuget package into your WP8 project:
    • Select Project -> Manage NuGet Packages...
    • Select Online -> nuget.org
    • Search for sqlite-net-wp8 and install the package.
  • Add a reference to the "SQLite for Windows Phone" extension.
    • Select Project -> Add Reference...
    • Select Windows Phone -> Extensions
    • Check "SQLite for Windows Phone" and click OK
  • Copy the sqlite-net source files (src/SQLite.cs and src/SQLiteAsync.cs) into your WP8 project.
  • Add "USE_WP8_NATIVE_SQLITE" as a conditional build symbol to your project containing the sqlite-net source files (without this, SQLite will use csharp-sqlite):
    • Project -> Properties
    • Click on the Build tab.
    • In the "Configuration" dropdown, select "All configurations".
    • In the "Platform" dropdown, select "All platforms".
    • Append ";USE_WP8_NATIVE_SQLITE" to the "Conditional compilation symbols" textbox.
  • Use sqlite-net as you normally would.