The value for column 'IsPrimaryKey' in table 'TableDetails' is DBNull
Video Tutorial In this tutorial we will learn how to fix The value for column 'IsPrimaryKey' in table 'TableDetails' is DBNull error while adding ado.net Entity Data Model. 1- In below Image i have show that error which occurs during adding ado.net Entity Data Model. 2- Now go to the following Address"Start->All Program->MySQL->MySql Server 5.7 ->MySQL Command Line Client". 3- Run the MySQL Command line Client and Enter your MySql Server Connection Password. 4- Paste Follow Code. set global optimizer_switch='derived_merge=off'; set optimizer_switch='derived_merge=off'; select @@optimizer_switch; select @@GLOBAL.optimizer_switch; 5- Hit Enter two time. 6- Now Once again add Ado.net Entity Data Model and you will notice that your model will generate successfully with the following tables in the database. Remember . After running following code than Restart Visual Studio once again than add ado.net Entity data ...