EF+Mysql
vs2015+win7 64bit
需安装:
mysql-for-visualstudio-1.2.3
mysql-connector-net - 6.8.3
nuget 包管理器
nuget 控制台输入
Install-Package EntityFramework -Version 6.0.0
install-package mysql.data -version 6.9.5
install-package mysql.data.entity -version 6.9.5
把连接字符串修改
<connectionStrings>
<add name="MyContext" connectionString="Data Source=127.0.0.1;port=3306;Initial Catalog=CodeFirstDemoDb;user id=root;password=1234;" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
填坑
https://www.cnblogs.com/kexxxfeng/p/5095812.html