我正在尝试使用 EF6 从 mysql 数据库架构生成模型类。我使用 ado.net 向导数据库第一种方法,但出现异常:
Unexpected exception occured when generating the model. StrongTypingException:the value for column 'IsPrimaryKey' in table TableDetails is DBNull.
最佳答案
在 MySQL 数据库上运行以下命令,然后尝试是否有效。
设置全局optimizer_switch='衍生_合并=关闭'
关于mysql - Entity Framework 6 和 mysql TableDetails 强类型异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32246122/