Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity data model designer won't open the edmx file

The strange thing is, it was working fine a few days ago. I added a new column to a table and was going to update the model through the designer and now it says "The Entity Data Model Designer is unable to display the file you requested. You can edit the model using the XML Editor."

There's nothing particularly noteworthy about the new field, it's just a non nullable bit field in SQL Server 2008.

like image 272
Legion Avatar asked Feb 14 '13 20:02

Legion


People also ask

How do I open an EDMX file in designer?

Right-click on the item and select "Open With..." - that should offer you the designer.

What is EDMX file?

An . edmx file is an XML file that defines an Entity Data Model (EDM), describes the target database schema, and defines the mapping between the EDM and the database. An . edmx file also contains information that is used by the ADO.NET Entity Data Model Designer (Entity Designer) to render a model graphically.


1 Answers

FOR Visual Studio 2017, 2019

I searched for the solution but come up with the installation of some NUGET packages and Extensions, nothing worked out.

Solution (Missing Entity Framework on Visual Studio)

  1. I searched for Visual Studio Installer on my machine and opened it.
  2. Under Visual Studio Professional 2017.
  3. I clicked on More to see more options. I selected Modify
  4. Select Individual Components (Second Tab)
  5. Check Entity Framework Under SDKs, libraries, and framework
  6. and then click Modify EDMX file will open after the process gets completed.
like image 190
Charlie Avatar answered Sep 19 '22 14:09

Charlie