简体   繁体   中英

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?

在此输入图像描述

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:

在此输入图像描述

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.

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