简体   繁体   中英

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

download and install .NET framework 4.8 helps me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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