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

编程入门 行业动态 更新时间:2024-10-27 08:27:34
本文介绍了.NET数据模型显示为XML而不是图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

就是这样.我格式化了计算机,然后再次安装了整个环境,但是看不到数据模型图. 我的意思是,打开数据模型(edmx文件),然后在XML文件中看到所有数据库表和数据库信息.不是图.

我安装了vs2010 sp1,net框架4,micro net框架4.1,实体框架4.1

我不知道我在想什么.你能帮我吗?

如果没有,我将无法更新模型.

似乎很简单,但我不知道如何解决.

解决方案

如果使用右键单击->打开方式..."在Visual Studio的解决方案资源管理器中打开EDMX文件...

...您在以下对话框中看到什么?应该是这样的:

如果您的情况看起来像默认"(=只需双击EDMX文件时的格式)就是XML编辑器之一.它应该是"ADO.NET实体数据模型设计器".您可以通过在列表框中选择该行并将其设置为默认值,然后单击右侧的设置为默认值".

That is. I format my computer and install the entire enviroment again, but I can't see the data model diagram. I mean, I open the data model (edmx file) and I see all the DB tables and DB information in an XML file. Not the diagram.

I installed 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.

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..." ...

...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. It should be "ADO.NET Entity Data Model Designer". 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.

更多推荐

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

本文发布于:2023-11-04 05:51:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557123.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图表   而不是   数据模型   NET   XML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!