Type is not resolved for member 'MySql.Data.MySqlClient.MySqlException,MySql.Data, Version=6.9.9.0,

.net entity-framework entity-framework-6 mysql mysql-connector

Question

I use EntityFramework(v.6.0.0.0) code first. .Net framework 4.6.01586. MySQL connector Version=6.9.9.0. MySQL server version = '5.5.28' .When I try to "update-database" i get this error "Type is not resolved for member 'MySql.Data.MySqlClient.MySqlException,MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'.". It is regular migration. Just "CreateTable". I tried to generate script and apply it to the database manually (via MySql Workbench)and it works. If I use Sql("my sql script") via migration it does not work too.

1
2
3/1/2017 4:48:42 PM

Popular Answer

Have you installed MySQL Connector ? I have downloaded mysql-connector-net-6.9.9.msi and it solved my problem. Download link https://dev.mysql.com/downloads/file/?id=463758

1
8/31/2017 9:04:59 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow