Closed Euphoric closed 2 years ago
Make sure the same version is installed in GAC, and regsitered in machine.config
@ErikEJ System.Data.Sqlite.Core is missing, should I register it?. Rest are on 1.0.108
And machine.config is same as in the tutorial.
Looks OK...
Is anyone looking at this problem? Is this problem reproducible? Is there anything else I could do to help debug this issue?
This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.
I'm using Entity Framework 6 with Sqlite provider. Everything works fine, but when I try to use Power Tools to Generate Views to optimize first-time query, I'm getting exceptions.
Attached is sample project. SqliteEfGenerateView.zip
I followed https://github.com/ErikEJ/SqlCeToolbox/wiki/EF6-workflow-with-SQLite-DDEX-provider to create a project with Database-First edmx with Sqlite. I made sure assemblies are in GAC and configuration in machine.config. I created trivial DB with single table and two columns. When I run the application, everything is fine. Designer for edmx file also works properly.
But when I right edmx file, and use Generate Views, following exception is written into output:
When I do the same on Context.cs file, I'm getting different error :![sqlite factory error](https://user-images.githubusercontent.com/2451173/38889120-f9ef1322-427d-11e8-8ca2-c3e5edbc779a.png)
I managed to replicate this both on my work PC and my home PC. Both with same configuration.
Attempts at fixing it
I spent whole day messing with app.config, adding and removing lines around providers. Nothing helps. It seems the app.config is not even read when Generate Views is used.
Further technical details
EF version: 6.2.0 (same with 6.0.0) Database Provider: Sqlite 1.0.108 (but same with 1.0.94) Operating system: Windows 10 IDE: Visual Studio 2017 15.6.1 and 15.6.6