简体   繁体   中英

adding ADO.NET Entity Model crash

I'm trying to add ADO.NET Entity Model to a new project.

Chose EF Designer from database, chose the database (on another server, tried 2 server one with mysql 5.6 and one with 5.7) and press continue and the the flow crash. tried it several times with different server and versions.

I installed all the latest versions of mySQL connection and EF.

Checked if there are error in the event viewer but couldn't fine errors or warnings at all.

I'm trying to add ADO.NET Entity Model to a new project.

Chose EF Designer from database, chose the database (on another server, tried 2 server one with mysql 5.6 and one with 5.7) and press continue and the the flow crash. tried it several times with different server and versions.

I installed all the latest versions of mySQL connection and EF.

Checked if there are error in the event viewer but couldn't fine errors or warnings at all.

I had same mistake. The reason was in the difference between mysql-connector-net version and MySQL.Data.Entity version. I uninstalled mysql-connector-net, then installed correct version, and the wizard started to work normally.

Hello I tried this today. I like to share my solution working for VS 2017. First install MySQL for Visual Studio. Then install the MySQL Connector 6.10.7. Now you are able to do everything else: Inside your project install some NuGets MySQL.Data and the MySQL.Entity: Both with version 6.10.7. The VS 2017 does not close anymore and the model window is opened.

I Hint also first install MySQL for Visual Studio. Then install the connector. This solves two issues: You can use MySQL in Visual Studio and you connect stable to a database.

Please, ensure what 3per mentions: MySQL.Data and MySQL.Data.Entity has to the same version.

Hope this helped others a lot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM