I am trying to generate my model classes from a mysql database schema, with EF6. I use the ado.net wizard database first approach and I get an exception that says :
Unexpected exception occured when generating the model. StrongTypingException:the value for column 'IsPrimaryKey' in table TableDetails is DBNull.
Run the following command on the MySQL DB and then try if this works.
set global optimizer_switch='derived_merge=off'