Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 EDMX model browser and diagram is missing

I have recently updated to Visual Studio 2015. Opened up my solution and works. Till I decided to add in an entity to my edmx. So I double-clicked on the edmx file to open the diagram like it should or maybe the model browser at least but it only opens an XML page. I checked any missed installation from the setup but didn't find anything about entity framework there. I tried to create a test solution and create another edmx but ADO.NET entity is missing as well. What is going on? Am I going to revert back to Visual studio 2013?

like image 673
J.P Masangcay Avatar asked Sep 30 '15 04:09

J.P Masangcay


People also ask

How do I view EDMX in Visual Studio?

Right click on School. edmx -> click 'Open with..', this will open a popup window. Select 'XML (text) Editor' in the popup window. Visual Studio cannot display the model in Design view and in XML format at the same time, so you will see a message asking whether it's OK to close the Design view of the model, click Yes.

How do I open EDMX browser?

To open the Model Browser, right click the empty surface of the EDM designer and select Model Browser from the context menu. Model Browser will appear in the area where you normally find Solution Explorer and Properties.


2 Answers

For me, the sequence was:

  • Double-click the .edmx file
  • Right click any white space in the opened diagram
  • Click Model Browser in the context menu that appears

If it opens as XML then it means that eventually XML Text Editor is set as default program to open edmx file. You can follow these steps to open in ADO.NET Entity Data Model Designer

  • right click on your edmx file
  • and select open with and select the option as show in below image.

    http://i.stack.imgur.com/D49Ki.png

like image 151
Mohd Ismail Siddiqui Avatar answered Oct 28 '22 09:10

Mohd Ismail Siddiqui


Alternate solution as the upvoted answer didn't work for me in VS2017:

Under the menu bar ribbon -

  1. Select 'View'
  2. Select 'Other Windows'
  3. Select 'Entity Data Model Browser'
like image 43
Ben Sampica Avatar answered Oct 28 '22 09:10

Ben Sampica