Error connecting to MySql using EF6

0

I'm getting the error

  

'System.Data.StrongTypingException: The value for column' IsPrimaryKey 'in table' TableDetails' is DBNull

Whenever I try to connect to a MySql database using Entity Framework 6.

Any tips to fix?

    
asked by anonymous 07.04.2017 / 01:56

1 answer

0

With the links that Virgilio Novic gave me, I managed to solve it like this:

Stop the MySql service;

Restart the MySql service;

Run the following command:

use NOME_TABELA;
set global optimizer_switch='derived_merge=OFF';
    
18.04.2017 / 00:43