Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SQLite with Entity Framework 6 on UWP?

I am now developing model classes for Universal Windows Application. Is there any possibility to use EF6 and SQLite together in this project or should I use pre-release of EF7 only?

like image 790
Andrew Sklyar Avatar asked Feb 19 '26 00:02

Andrew Sklyar


1 Answers

Sure, you can now use Microsoft.EntityFrameworkCore.Sqlite, but with a little workaround needed.

Useful documentation

A useful walkthrough

Workarounds:

adding an app.config to application layer UWP## Heading ##

Add Ms.EfCore.Tools to app layer (natemcmaster commented on 3 May)

Hope this helps

like image 91
Ian Avatar answered Feb 21 '26 15:02

Ian