Reputation: 105037
I am trying to do something of the form: alt text http://img707.imageshack.us/img707/4317/eswdbetcywhxebxvnhyqhzb.png
Is it possible at all to do it? I want to have a collection of Food objects in my MealEvent class.
Thanks!
Upvotes: 0
Views: 5931
Reputation: 688
This is what I managed to do in VS2010 Professional:
Add Food
as a property of a collection type (I used ObservableCollection
) to MealEvent
. Then right-click the property and Show as Collection Association. you will now get a double arrow --->>
indicating the multiplicty.
Upvotes: 3
Reputation: 8516
If you're using Visual Studio 2010 Ultimate, the UML class diagram lets you set the Multiplicity property on First Role and Second Role properties of the relationship.
For more information, see Properties of Associations in UML Diagrams.
Upvotes: 2
Reputation: 1462
I don't know this tool but the design seems to be pretty nice. Usually when you work with graphical tools you can either click on the association link to: - open a contextual menu. - to change property into another property view - to erase it and redo it
You need to change the multiplicity settings and check non navigable option.
Upvotes: 0