首页 > 数据库技术 > 详细

“TableDetails”中列“IsPrimaryKey”的值为DBNull.

时间:2016-07-05 14:18:34      阅读:293      评论:0      收藏:0      [点我收藏+]
                                                                           

技术分享

Entity Framework连接MySQL时:由于出现以下异常,无法生成模型:“表“TableDetails”中列“IsPrimaryKey”的值为DBNull.

解决方案:

Execute the following commands in MySQL.
   use <<database name>>;
   set global optimizer_switch=‘derived_merge=OFF‘;

 

 http://stackoverflow.com/questions/33575109/mysql-entity-the-value-for-column-isprimarykey-in-table-tabledetails-is

“TableDetails”中列“IsPrimaryKey”的值为DBNull.

原文:http://www.cnblogs.com/haoliansheng/p/5643303.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!