T
T
thatside2015-05-03 13:49:12
C++ / C#
thatside, 2015-05-03 13:49:12

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

1 answer(s)
T
thatside, 2015-05-03
@thatside

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>

I made a strange decision from here: overcram.com/questions/?qid=699418

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question