Bug #79814 Scaffolding fails when MySqlEFConfiguration is set in DbConfiguration
Submitted: 30 Dec 2015 18:46 Modified: 10 Mar 2016 11:54
Reporter: Rune Antonsen Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version: OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[30 Dec 2015 18:46] Rune Antonsen
Description:
EF version: 6.1.3
MySQL.Data version: 6.9.8
MySQL.Data.Entity: 6.9.8

I followed instructions @ https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html

"Set the DbConfiguration type in the configuration file:
<entityFramework codeConfigurationType="MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6">"

After that scaffolding controller failed.

I get the the error:

"Error

There was an error running the selected code generator:
'Unable to retrieve metadata for 'NAMEPSACE.Models.MODELNAME'.
Using the same DbCompiledModel to create contexts against different types of database servers is not supported. Instead, create a separate DbCompileModel for each type of server being used.'"

How to repeat:
Set the DbConfiguration type in the configuration file:

<entityFramework codeConfigurationType="MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6">

Add controller -> "Web API 2 Controller with actions, using Entity Framework"
[11 Jan 2016 11:29] Chiranjeevi Battula
Hello Rune Antonsen,

Thank you for the bug report.
I tried to reproduce the issue at my end using MySQL Connector/Net 6.9.8, EF6.1.3 and VS 1.2.5 but not seeing any issues in EFConfigurations.
Could you please list out exact steps you tried out at your end, this would help us to reproduce the issue at our end.

Thanks,
Chiranjeevi.
[9 Feb 2016 23:00] Carl Robinson
Hi Rune,

I have exactly the same problem - have you managed to solve it yet?
[10 Feb 2016 11:54] Chiranjeevi Battula
Hello Carl Robinson,

Thank you for your feedback.
Could you please provide repeatable test case (exact steps/sample project, MySQL version etc. - please make it as private if you prefer) to confirm this issue at our end?

Thanks,
Chiranjeevi.
[11 Mar 2016 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".