出现如下问题
引用:http://*.com/questions/33575109/mysql-entity-the-value-for-column-isprimarykey-in-table-tabledetails-is
1. Open Services (services.msc) and restart MySQL57 service.
2. Execute the following commands in MySQL.
use <<database name>>;
set global optimizer_switch='derived_merge=OFF';
3. Update the .edmx.
步骤为:
1、重启mysql服务
2、登录mysql数据库
use mytestdb;
set global optimizer_switch='derived_merge=OFF';
这样就可以了
解决办法:
1. 运行services.msc,重启MySQL服务.
2. 在MySQL运行一下命令: use mydbname; set global optimizer_switch='derived_merge=OFF';
3. 重新生成 .edmx