Entity Framework wizard crashes on MySQL

前端 未结 10 678
离开以前
离开以前 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:29

    I fixed this problem by following the steps below (note that im using vs2015 and .net 4.5)

    1) Uninstall all previous mysql connectors that you have

    2) Remove all mySQL references through NuGet packages

    3) Download mysql connector v6.8.8

    4) Once this is downloaded, go to your project and add as reference the newly installed dll files (located in the installation path, typically C:\Program Files (x86)\MySQL\MySQL Connector Net 6.8.8\Assemblies\v4.5)

    5) Go to your NuGet packages and add MySql.Data (Version 6.8) and MySql.Data.Entity (Version 6.8).

    6) Build your solution and no more crash :)

    Hope this helps you out

提交回复
热议问题