Mysql
 sql >> Datenbank >  >> RDS >> Mysql

MySQL - Entität:Der Wert für die Spalte „IsPrimaryKey“ in der Tabelle „TableDetails“ ist DBNull

Entity Framework (Version 6.1.3) und MySQL Server (>=5.7.6)

Eine Möglichkeit, das Problem zu lösen, ist,

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.

Es ist eine späte Antwort. Aber hoffe es hilft jemandem.

Danke.