Search code examples
c#sqlitewindows-phone-8windows-runtimewindows-phone

How to use SQLiteConnection in Windows Phone Runtime?


I want to use SQL relationships in my Windows Phone Runtime app. So it seems I need to use SQLite-net Extensions

I have referenced these files:

 SQLite.Net 
 SQLiteNetExtensions 
 SQLite for Windows Phone 8.1

But when I want to get a connection:

var connection = new SQLiteConnection( ... );

It requires an implementation of ISQLitePlatform interface. How do I get the argument value?

(It seems there is not a ready SQLite Net Extensions package for Windows Phone Runtime, if anyone knows how to get it I greatly appreciate it)


Solution

  • I know this is a rather new development but I think they updated their nuget package a few hours ago:

    https://bitbucket.org/twincoders/sqlite-net-extensions/issue/27/error-while-adding-sqlite-net-extension-to

    It should work now.