MySQL Forums
Forum List  »  MySQL for Visual Studio

8.1 Entity Framework 6 Support -- problem
Posted by: Jon Jacobs
Date: January 25, 2020 09:22AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
8.1 Entity Framework 6 Support -- problem
354
January 25, 2020 09:22AM


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.