Entity Framework's Entity Data Wizard Crashes When Connecting to MySQL Database

后端 未结 5 1841
遇见更好的自我
遇见更好的自我 2021-02-11 23:11

I am attempting to create an Entity Data Model using the wizard to reverse engineer an existing MySQL database. I get to the Choose Your Data Connection page of the wizard, sele

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-11 23:44

    It is caused by version mismatch.

    On my system, I had MySQL Connector 6.9.6. Issuing the command in NuGet Package Manger Console:

    Install-Package MySql.Data.Entity installs version 6.9.8 by default. Your connector must match the actual version of the NuGet Package. You can download an updated version of the connector from: https://www.mysql.com/products/connector/

    Here select the "Ado.net driver for MySQL", and download the corresponding version (in this case 6.9.8). Reopen Visual Studio and now the wizard does not crash. No reboot required.

提交回复
热议问题