Entity Framework wizard crashes on MySQL

前端 未结 10 682
离开以前
离开以前 2020-12-16 11:50

My question is similar to this one but the crash happens later. I must interoperate an EF database-first model between SQL Server and MySQL. More specifical

10条回答
  •  清歌不尽
    2020-12-16 12:49

    The problem is the compatibility of MySQL, Visual Studio, connector and MySQL for Visual Studio.


    1. Close Visual Studio.
    2. You need to uninstall MySQL Connector and MySQL for Visual Studio. (Restart your computer)
    3. If you have two versions of the visual studio it will work only in one of them. So choose which you want.
    4. Install the correct versions. (Restart your computer).

      • Visual Studio 2019 (Community, Professional, and Enterprise) - MySQL for Visual Studio 1.2.9 with Connector/NET 8.0.14
      • Visual Studio 2017 (Community, Professional, and Enterprise): -MySQL for Visual Studio 1.2.7 with Connector/NET 6.9.9
      • Visual Studio 2015 (Community, Professional, and Enterprise): -MySQL for Visual Studio 1.2.7 or 2.0.2 with Connector/NET 6.9.8
    5. Open VS and build your project then try to update your entities

    Actually I'm using VS professional 2017 with this nuggets MySql.Data 6.9.9 and MySql.Data.Entity 6.9.9(MySQL for Visual Studio 1.2.7 with Connector/NET 6.9.9)

提交回复
热议问题