Deleted
Deleted

Reputation: 4217

Associations in Visual Studio 2008 class diagrams

When I generate class diagram in Visual Studio 2008 using View Class Diagram I always get a bunch of class boxes without methods. The only lines in the diagram are inheritance.

Is it possible, and if so how do I get associations (aggregation and composition might not be possible, but at least an association line indicating they are some how connection. Preferably with an arrow) visualized?

And is it possible to change it so that methods are shown after generating a diagram by default?

Upvotes: 0

Views: 1102

Answers (1)

David Lynch
David Lynch

Reputation: 1716

To show a property as an association just right click on a property in the diagram editor (not the Class Details panel) and choose either "Show as Association" or "Show as Collection Association". Obviously you will need to make the property visible in the diagram editor first. Typically I only show public properties.

And I don't believe there is a way to always show associations.

Upvotes: 1

Related Questions