简体   繁体   English

.NET 数据 Model 显示为 XML 而不是图表

[英].NET Data Model is shown as XML and not as Diagram

That is.那是。 I format my computer and install the entire enviroment again, but I can't see the data model diagram.我格式化我的电脑并重新安装整个环境,但是我看不到数据model图。 I mean, I open the data model (edmx file) and I see all the DB tables and DB information in an XML file.我的意思是,我打开数据 model(edmx 文件),我在 XML 文件中看到了所有数据库表和数据库信息。 Not the diagram.不是图表。

I installed vs2010 sp1,.net framework 4, micro.net framework 4.1, entity framework 4.1我安装了vs2010 sp1,.net framework 4, micro.net framework 4.1, entity framework 4.1

I don't know what I am missing.我不知道我错过了什么。 Can you help me?你能帮助我吗?

Without that I cannot update the model.否则我无法更新 model。

Is seems easy but I don't know how to solve it.看起来很容易,但我不知道如何解决。

If you open the EDMX file in the solution explorer of Visual Studio with "Right-Mouse-Click->Open With..." ... 如果在Visual Studio的解决方案资源管理器中使用“右键单击 - >打开...”打开EDMX文件...

在此输入图像描述

...what do you see in the following dialog? ...你在下面的对话框中看到了什么? It should be like this: 它应该是这样的:

在此输入图像描述

If looks like in your case the "default" (= format when you just double click on the EDMX file) is one of the XML editors. 如果在您的情况下看起来像“默认”(=当您双击EDMX文件时的格式)是XML编辑器之一。 It should be "ADO.NET Entity Data Model Designer". 它应该是“ADO.NET实体数据模型设计器”。 You can make it the default by selecting the line in the list box and then click on "Set as Default" on the right side. 您可以通过选择列表框中的行,然后单击右侧的“设为默认值”将其设为默认值。

download and install .NET framework 4.8 helps me.下载并安装 .NET 框架 4.8 帮助我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM