VS 连接MySQL,创建ADO.NET实体集,报错:StrongTypingException: 表“TableDetails”中列“IsPrimaryKey”的值为 DBNull。

VS 连接MySQL,创建ADO.NET实体集,报错:异常信息 StrongTypingException: 表“TableDetails”中列“IsPrimaryKey”的值为 DBNull。



VS 连接MySQL,创建ADO.NET实体集,报错:StrongTypingException: 表“TableDetails”中列“IsPrimaryKey”的值为 DBNull。
解决办法:

 use test/*此处是将要连接的数据库名称*/;   

 set global optimizer_switch='derived_merge=OFF';