EF6使用 MySQL

1、在http://mirrors.sohu.com/mysql/MySQL-for-VisualStudio/ 下载安装 mysql-for-visualstudio-1.2.3.msi 。

这样,才会有 MySQL 的数据源。

2、安装用于 .net 的连接程序 mysql-connector-net-6.9.4.msi,下载地址 http://mirrors.sohu.com/mysql/Connector-Net/.

这样,才能从 MySQL 数据库把表、试图、储存过程添加到项目。注意,添加数据库连接的时候,用127.0.0.1。

3、用 Nuget 安装 MySql.Data.Entity

现在就可以象使用SQL一样使用MySQL 了。

原文地址:https://www.cnblogs.com/tider1999/p/4461780.html