Entity Framework Database First generation crash M

2020-02-16 03:33发布

问题:

I am trying to generate code from an existing MySql database. I'm following this guide: https://msdn.microsoft.com/en-us/library/jj206878(v=vs.113).aspx

When I select the database from my data connections the wizard just disappears. I have read something about this being caused by MySql NuGet packages version mismatch, but I seem to have the correct versions. These are my installed NuGet packages.

Also, I see a lot of mention of "Connector/Net" can someone tell me what that is?

回答1:

The wizard closing is a known bug in MySQL Connector/NET:

  • Bug 89338 for 6.10.5
  • Bug 91195 for 8.0.11

You will need to wait for Oracle to fix this bug and ship an update. Some people have reported being able to work around the problem by following these instructions.

"Connector/NET" is just another name for the MySql.Data library plus the additional Visual Studio addins; for example, it's used in this documentation.