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
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
.
They broth thanks, you saved my life. I have lost more than 5 hour trying to figure out what was happening. guys don't forget to put on your database Context.
[DbConfigurationType(typeof(MySql.Data.EntityFramework.MySqlEFConfiguration))]