asp.net - Attempting to create an Entity Framework model from a MySQL database fails with an unexpected exception -


so, i'm trying set mysql , asp.net.

currently, have both visual studio 2013 , visual studio 2015 installed on pc. used installer mysql (basically 1 comes need started, including mysql visual studio): mysql installer

anyways, quick test made new asp.net mvc project, connected database in server browser (which works fine!). however, tried create ado.net model it. when come step of generating model database, error/exception:

error/exception message

this happens in both visual studio 2013 and visual studio 2015.

i have tried search way out of (i've tried different databases, used of sample databases included mysql server installed, still got same error), don't seem able find information on it. additionally, might worth noting when select version of entity framework use, this:

entity framework version select

which seems odd i'd think newest mysql installer did include mysql visual studio supports ef 6.x?

anyways, assistance or hints on problem appreciated :)

edit - narrowed down problem bit

so, found out problem occours whenever have database foreign keys in. still no clue why, databases without them can generate!

try run command on mysql workbench:

set global optimizer_switch='derived_merge=off' 

good luck!


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -