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

                                                                           

这里写图片描述

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

posted @ 2016-07-05 13:22  iDEAAM  阅读(2881)  评论(0编辑  收藏  举报