dotnet / ef6

This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore.

Home Page:https://docs.microsoft.com/ef/ef6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to connect to SQLite database on Visual Studio 2022 .Net Framework

vsfeedback opened this issue · comments

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version]
I have Installed these packages with Nuget :

  • EntityFramework
  • SQLite
  • System.Data.Sqlite
  • System.Data.Sqlite.Core
  • System.Data.Sqlite.EF6
  • System.Data.Sqlite.Linq
  • Sub.System.Data.Sqlite.Core.NetFramework
    When I try to connect a DataGridView to a Dataset, using SQLite Provider (Simple EF6 by EricEJ), I get the message:
    Could not find the data provider. NET Framework requested
    I couldn't connect to SQLite database with these packages in Visual Studio 2019, but I used DotConnect from Devart. But DotConnect doesn't run in Visual Studio 2022.
    Thanks for a fix.
    Windows 11 Professionnel 21H2 Build 22000.434

Original Comments

Feedback Bot on 1/17/2022, 07:34 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@ErikEJ Any ideas?

I did some research and I think the issue is that there is no Sqlite 64 bit DbProvider (and there never will be one until @bricelam or someone else releases a Sqlite DDEX provider) 😉 ErikEJ/SqlCeToolbox#924 (comment)

I updated my VS.Data.Sqlite project to work on VS 2022 back in November, but I'm not sure how close it is to enabling the DataGridView stuff. And there's still a lot I want to do before making an official release of it.

I wonder if the original poster was intentionally bypassing EF6 and using ADO.NET directly for binding. I wonder if following these steps would work with SQLite or if they'd hit the same limitation.

Also worth noting that the official DDEX provider hasn't been supported since VS 2015.

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.