Visual Studio 2015 EDMX模型浏览器和图表丢失 [英] Visual Studio 2015 EDMX model browser and diagram is missing

查看:201
本文介绍了Visual Studio 2015 EDMX模型浏览器和图表丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近更新到了Visual Studio2015.打开了我的解决方案并开始工作.直到我决定在edmx中添加一个实体.因此,我双击edmx文件来打开该图,至少应该打开它,或者至少打开模型浏览器,但它只打开一个XML页面.我检查了安装程序中所有错过的安装,但是没有找到有关实体框架的任何信息.我试图创建一个测试解决方案并创建另一个edmx,但是ADO.NET实体也丢失了.到底是怎么回事?我要恢复到Visual Studio 2013吗?

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?

推荐答案

对我来说,顺序是:

  • 双击.edmx文件
  • 右键单击打开的图中的任何空白
  • 在出现的上下文菜单中单击模型浏览器"

如果以XML格式打开,则意味着最终将XML文本编辑器设置为打开edmx文件的默认程序.您可以按照以下步骤在ADO.NET实体数据模型设计器中打开

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

  • 右键单击您的edmx文件
  • ,然后选择打开方式,然后选择下图所示的选项.

  • 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

这篇关于Visual Studio 2015 EDMX模型浏览器和图表丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆