8.1 Entity Framework 6 Support -- problem
Posted by: Jon Jacobs
Date: August 14, 2020 11:08AM

In my MVC5 EF6 Code First app, in the root Web.Config, I used the connectionString and provider shown at https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html . Except that I used the actual server where the MySQL databases are, and the name of the actual database, along with my full privilege service account for uid and password.

When I try to create a Controller for one of the Models, I get this Error: There was an error running the selected code generator:
'Unable to retrieve metadata for 'TestUniversity.Models.Student' Using the
same DbCompiledModel to create contexts against different types of database
servers is not supported. Instead, create a separate DbCompiledModel for each
type of server being used.

Is this because of the version of the MySQL database? It is 5.6.13

I received this reply:
this looks like an issue with MySQL Connector/NET. I recommen posting your question in the following forum: https://forums.mysql.com/list.php?38

So here I am. Can you help?
Thank you

Options: ReplyQuote


Subject
Written By
Posted
8.1 Entity Framework 6 Support -- problem
August 14, 2020 11:08AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.