5

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

Keyur Ramoliya
  • 1,900
  • 2
  • 16
  • 17
IntegerOverlord
  • 1,477
  • 1
  • 14
  • 33

2 Answers2

1

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

Hriday Modi
  • 2,001
  • 15
  • 22
Victor Manuel
  • 174
  • 1
  • 9
0

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.

albert
  • 8,285
  • 3
  • 19
  • 32
Schytheron
  • 715
  • 8
  • 28