pierre3 / PlantUmlClassDiagramGenerator

This is a generator to create a class-diagram of PlantUML from the C# source code.
MIT License
653 stars 129 forks source link

Use lines instead of List`1 #11

Open Tvde1 opened 5 years ago

Tvde1 commented 5 years ago

I created a diagram which looked like this: image Everything which is connected goes via List'1. Could there be an option to just use lines like:

ClassA --> "0..*" ClassB

Where "0..*" shows it's a list.

devantler commented 4 years ago

I would love this too. This is one of the reasons why I still need to "fix" the generated UML Class Diagram :-)

emriti commented 3 years ago

does anybody have any solution for this?

bjarnisig commented 3 years ago

I would love this feature also. Currently I'm patching the generated files with sed. Examples:

find plantuml/ -name *.puml -exec sed -i -E 's/(.*) --> "(.*)<(.*)>" "List`1"/\1 o-- "0..*" \3/' {} \;
find plantuml/ -name *.puml -exec sed -i -E 's/(.*) o-> "(.*)<(.*)>" "List`1"/\1 o-- "0..*" \3/' {} \;

this will convert

Foo o-> "bars<Bar>" "List`1"

to

Foo o-- "0..*" Bar
calvacode commented 2 years ago

@bjarnisig thank you for share your solution, it works very well!

ArwynFr commented 1 year ago

This should also apply to all collections types, such as IList, ICollection, etc ...