问题
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?
回答1:
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
回答2:
Alternate solution as the upvoted answer didn't work for me in VS2017:
Under the menu bar ribbon -
- Select 'View'
- Select 'Other Windows'
- Select 'Entity Data Model Browser'
来源:https://stackoverflow.com/questions/32857719/visual-studio-2015-edmx-model-browser-and-diagram-is-missing