So I have the following:
Nuget:
And the following in Web.config:
<entityFramework>
<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6" />
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
</providers>
</entityFramework>
Within Server Explorer I have a valid connection to a remote MySql Server instance and read/write tables, etc. However, when I try to add an ADO.NET entity and select 'Code first from database', hit next, select the connection, mark "Yes, include the sensitive data in the connection string" and leave the "Save connection settings Web.Config as:" checked as well as the name textfield and then hit next, Visual Studio seems to think a bit, shows the picture below real quick, and then the wizard closes. However, there are no models created nor is there a connectionString
created in Web.config. Why is this happening and how do I fix it?
I have had this problem and was never able to fix it, I think VS just can't manage the Mysql Database inside its server explorer for datasets/binding.
Even in WPF, I had to manually build Dataset objects for WPF binding - it was a pain in the arse. If you can, stick with MSSQL or learn how to program MySQL, in C#/VB.NET it's not nice.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments