Answer the question
In order to leave comments, you need to log in
Why does the Entity Framework model creation window in Visual Studio close?
I'm trying to create an Entity Framework model in a Windows Forms project using MySQL. The project already had a model of the same base, but now the base has expanded noticeably, and I would like to create a new model. The problem is that when trying to create a model using Database First, the window closes as soon as the data connection is selected.
I create the same model in another project - it says that the project refers to the latest version of EF, and the data provider does not know how to work with it. Although the latest versions of MySQL for Visual Studio and Connector/.NET are installed.
Answer the question
In order to leave comments, you need to log in
I decided this way: I removed all references to EntityFramework from NuGet, also everything related to MySQL, added them again. Then, from app.Config, I commented out everything related to EntityFramework and replaced it with this:
<entityFramework>
<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6" />
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
</providers>
</entityFramework>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question