How to fill out Associations Dialog Box?
Posted: Mon 05 Dec 2011 15:58
After reading the help file and looking at sample diagrams, I still do not understand the Associations Editor dialog box.
Could someone explain how I need to fill out the Association Dialogs? I will (hopefully) come to understand the dialog box through the solution to what I am trying to do.
I am trying to create a diagram (model first) to be used with NHibernate. With the class and property names changed to protect the innocent, it has a "Humans" class of which an instance represents a person such as "Bob." I have another class "Hobbies" of which each instance represents a Hobby such as "Crafting PiƱatas" or "Making Mouse Traps." I have a class "HobbyType" that represents types of hobbies such as "Crafts" or "Outdoor Adventures."
The Humans class has a property named "HisHobbies" which I want to hold a set of instances of Hobbies (in relational-speak, presumably a set of Hobbies.HobbiesIDs). The Hobbies table has a property named "HobType" which should be a reference to a single instance of HobbyType.
How do I fill out the Association Dialogs to do this?
Thanks,
Greg

I am trying to create a diagram (model first) to be used with NHibernate. With the class and property names changed to protect the innocent, it has a "Humans" class of which an instance represents a person such as "Bob." I have another class "Hobbies" of which each instance represents a Hobby such as "Crafting PiƱatas" or "Making Mouse Traps." I have a class "HobbyType" that represents types of hobbies such as "Crafts" or "Outdoor Adventures."
The Humans class has a property named "HisHobbies" which I want to hold a set of instances of Hobbies (in relational-speak, presumably a set of Hobbies.HobbiesIDs). The Hobbies table has a property named "HobType" which should be a reference to a single instance of HobbyType.
How do I fill out the Association Dialogs to do this?
Thanks,
Greg