0

I can't find any SQLite.Net.Platform library that works with Windows Phone 8.1.

These are not working:
https://www.nuget.org/packages/SQLite.Net.Platform.WindowsPhone8/
https://www.nuget.org/packages/SQLite.Net.Platform.WinRT/
https://www.nuget.org/packages/SQLite.Net.Platform.Generic/
https://www.nuget.org/packages/SQLite.Net.Platform.Win32/

Any workaround?

Vahid
  • 3,384
  • 2
  • 35
  • 69
  • Go to the following blog entry and go through the tutorial it should work http://blog.tpcware.com/2014/05/universal-app-with-sqlite-part-2/ – Stuart Smith Dec 16 '14 at 14:57
  • @StuartSmith, Thanks but that doesn't work with "Foreign Key" solutions. So I have to use another library (SQLite-Net Extensions) that needs the Platform. – Vahid Dec 17 '14 at 05:40

1 Answers1

3

WinRT platform is compatible with Windows Phone 8.1 projects. You can copy the sources to your platform specific project and instantiate the connection using SQLitePlatformWinRT class.

redent84
  • 18,901
  • 4
  • 62
  • 85
  • Thanks for the answer. Plz edit your post that we have to copy the WinRT source code in our project for the moment. – Vahid Dec 18 '14 at 10:02
  • Hello! Could one of you maybe explain how one copies SQLitePlatformWinRT-source-code to the phone-project from the windows-project. Glad to see it can be done! – user2915962 Dec 28 '14 at 12:55
  • 1
    @user2915962 In your shared project you use the SQLite-Net PCL nuget package and then you download the sources from the link in the answer and copy those files to your Windows Phone 8.1 project to instantiate your SQLite connection – redent84 Dec 30 '14 at 10:19
  • I used the nuget SQLite-Net PCL in my PCL. Then I created a new folder in my wp81-project and named it SQL. I then downloaded the files from the link. Is that the right way? I get loads of errors. In the link there are also a file: SQLite.Net.Platform.WinRT.csproj. Should I use that one? Thank you – user2915962 Dec 30 '14 at 15:52