NHibernate: Many-to-many relationship with field in the relationship table

Posted by Fossmo on Stack Overflow See other posts from Stack Overflow or by Fossmo
Published on 2010-04-26T12:18:00Z Indexed on 2010/04/26 12:23 UTC
Read the original article Hit count: 405

Filed under:
|

I'm scratching my head; I have a Car table and a Customer table that have a many-to-many relationship. In this relationship table I want to add a column that can tell me what kind of relationship this is; is the customer testdriving the car, do he want to buy the car, ect. What I want to end up with is a class Car object that holds a collection of Customers and the relationship information. I might be looking at this the wrong way so feel free to push me in the right direction.

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about many-to-many