This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm trying to build a relationship between two entities Employee and Address such that an Employee can have multiple Addresses and same Address can be shared among multiple Employees as well. I took database first approach and created below tables Third table contains reference ids from first two tables to maintain the many-to-many relationship between Employee and Address. Using these tables I created Entity classes with NHibernate Designer and it created two classes Employee and Address, and added collection of each as below -
In Employee class, the collection of Address is fine, but I don't want to have Employee collection in Address class. I tried to remove this association but not able to do that. Without using designer I created my own classes and created own mapping xml and it is working fine with one way association, but I'm willing to use your designer and need your help in removing unwanted associations in many-to-many relationship. Thanks, Ashish |
|