MySQL – Entity Framework: The value for column ‘IsPrimaryKey’ in table ‘TableDetails’ is DBNull

  • Open Services (services.msc) and restart MySQL57 service.
  • Execute the following commands in MySQL
    use YourDatabaseName;
    set global optimizer_switch=’derived_merge=OFF’;
  • Close .edmx and open again
  • Update the .edmx.

Leave a Reply

Your email address will not be published. Required fields are marked *