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?
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.
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.
For me, the sequence was:
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
and select open with and select the option as show in below image.
http://i.stack.imgur.com/D49Ki.png
Alternate solution as the upvoted answer didn't work for me in VS2017:
Under the menu bar ribbon -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With