Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 577
Faabass Avatar asked Aug 09 '12 16:08

Faabass


1 Answers

If you open the EDMX file in the solution explorer of Visual Studio with "Right-Mouse-Click->Open With..." ...

enter image description here

...what do you see in the following dialog? It should be like this:

enter image description here

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.

like image 172
Slauma Avatar answered Nov 04 '22 16:11

Slauma