IntegerOverlord
IntegerOverlord

Reputation: 1637

How to get automatic relationships in class diagram VS2017?

I need to create a UML class diagram for my .net core project. If I go to Class View - View Class Diagram, I get all of my classes, but there are no relationships and to do them by hand is a lot of work. How can it be done automatically?

enter image description here

Upvotes: 5

Views: 3843

Answers (2)

Schytheron
Schytheron

Reputation: 735

I don't know how to do this in Visual Studio, but I know you can achieve this by using doxygen and Graphviz.

These SO posts might be of great help:

How to use doxygen to create UML class diagrams from C++ source

Graphviz + Doxygen to generate UML class diagrams

I also found this tool online: https://code.google.com/archive/p/doxygraph/

Never tested it but based on its description it seems to do exactly what you want.

Upvotes: 0

Victor Manuel
Victor Manuel

Reputation: 174

I think there is no automatic relationships in VS 2017 , you must right-click on the field and select Show As Collection Association. Check below image:

enter image description here

Upvotes: 1

Related Questions