How can we help you today?
Entity Framework & VistaDb
1 Comment
Be sure you added a reference to the VistaDB engine (it should have added it) and that it's set to copy local. Often the second part is missing. Rebuild and see if that address it.
Be sure you added a reference to the VistaDB engine (it should have added it) and that it's set to copy local. Often the second part is missing. Rebuild and see if that address it.
Trevor Daniel
Hello,
I am new to VistaDb and I am trying to get a simple example of talking to a VistaDB database with EF.
I have created a clean Windows Forms App.
Using nugget, I added "Entity Framework" and then "VistaDb 5 Provider for Entity Framework 6 and later"
I then added a new item of "ADO.NET Entity Data Model", created a connection using the VistaDb driver, tested the connection and it worked...
Happy Days!
I then proceeded to add some code to a button to get a list of visitors from my database as below..
But, when I run this code I get the error:
"An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Data.dll"
"Additional information: Failed to find or load the registered .Net Framework Data Provider."
Can anyone tell me what I am doing wrong please?
My app.config looks like this: