Entity Framework 6 and mysql TableDetails Strong typing exception

entity-framework entity-framework-6 mysql strong-typing

Question

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.

1
2
8/29/2015 10:36:22 AM

Popular Answer

Run the following command on the MySQL DB and then try if this works.

set global optimizer_switch='derived_merge=off'

5
3/31/2016 7:37:00 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow