Reputation: 1637
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?
Upvotes: 5
Views: 3843
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
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:
Upvotes: 1