Error-Attempt by method 'X.set_DbConnection(System.Data.Common.DbConnection)' to access method 'Y.get_Settings()' failed

前端 未结 2 1688
無奈伤痛
無奈伤痛 2020-12-01 17:07

I created a console app and use EntityFramework 6.2 (for connection with MS SQL), MySql.Data 8.0.11 and MySql.Data.Entity 6.10.7 (for connection with MySQL).

In this

2条回答
  •  天命终不由人
    2020-12-01 17:32

    MySql.Data.Entity 6.10.7 isn't compatible with MySql.Data 8.0.11.

    Oracle renamed the package to MySql.Data.EntityFramework for v8.x. You need to uninstall MySql.Data.Entity and install MySql.Data.EntityFramework.

提交回复
热议问题