简体   繁体   中英

Entity Framework database first with MySQL not working

I have been trying to use Entity Framework to connect to a MySQL database, database first, but I can´t get any connection to the database. When searching google and mysql.com, I only get guides thats telling me to use code first or model first.

What I want is what I always do: Add new Entity Data Model, write the credentials to the database and then, everything works just fine and I can write my LINQ queries as I am used to.

I am using Windows 8, VS 2013 ultimate, Environment.Version is 4.0.30319.36366.

How can I connect to MySQL with EF database first?

在此处输入图片说明

在此处输入图片说明 That's a common error when you first load the EF Designer. I don't know if its the same in VS 2013 but In VS 2015 You can create a new connection and select MySQL, but MySQL For Visual Studio should be properly installed.

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