Entity Framework wizard crashes on MySQL

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

    I had a similar issue. After installing 'MySql.Data 6.9.9' and 'MySql.Data.Entity 6.9.9' Nuget packages, the wizard crashed after that screen. I attached a debugger to it and found it was caused by a null reference exception in MySql.Data.Entity.EF6.dll.

    I figured it may not be the packages, since I already tried reinstalling them, so I figured it might be an issue with the MySQL install for Visual Studio conflicting with the MySQL EF6 dll. The solution for me was simply to reinstall the latest "MySQL for Visual Studio 1.2.6":

    http://dev.mysql.com/downloads/windows/visualstudio/

    Could be I had an older version (didn't think to check first, so I can't confirm).

提交回复
热议问题