Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite - Unable to find the requested .Net Framework Data Provider #809

Open
statler opened this issue Jul 3, 2023 · 1 comment
Open

Comments

@statler
Copy link

statler commented Jul 3, 2023

I am having trouble generating the SQLite configs when using an EF7 library. I am getting the following error

System.ArgumentException: 'Unable to find the requested .Net Framework Data Provider. It may not be installed.'

Happens at:
var factory = DbProviderFactories.GetFactory(providerName);

I know this is caused by the factory not being registered - which is understandable in a framework app, but this is not how the EF Core config works - e.g. there is no app.config. Further, the provider is Microsoft.data.sqlite.

I expect there is something hacky that has to be done to get the factopry to work. Can you please advise - maybe some docs or something?

@sjh37
Copy link
Owner

sjh37 commented Jul 3, 2023

Yes you are correct you need to register it. Have a read of the Sqlite wiki here hopefully that will get you up and running in no time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants