EF框架从MySql生成模型时异常

来源:互联网 发布:域名两个a记录 编辑:程序博客网 时间:2024/06/08 02:43

无法生成模型:“System.Data.StrongTypingException: 表“TableDetails”中列“IsPrimaryKey”的值为 DBNull

 

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

One way to resolve the issue 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.

0 0