title: How to model a Many to many-relationship in code?
body: <p>Suppose I have 2 tables in a database.
  eg: Dog &amp; Boss
  This is a many to many relationship, cause a boss can have more than 1 dog, and a dog can have more than 1 owner. I am the owner of Bobby, but so is my wife.</p>
  
  <p>But many to many is not allowed, so there is a helpertable: DogsPerBoss</p>
  
  <p>How to model this in code?</p>
  
  <p>Class Boss can have a collection of Dogs.
  Class Dog can have a collection of Bosses.
  --> at least, that is what I think. Perhaps there are better solutions?</p>
  
  <p>How about extra data that is in the helper-table?
  Should that be in de Boss-class or in the Dog-class?
  eg: Nickname
  (I call the dog "good boy" and my wife calls him "doggie")</p>
  
  <p>I hope my question is kinda clear?
  Are there any best-practices on what is the best way to achieve this?
  Can you give me some references?</p>
  
  <p>An ORM (like NHibernate) is not an option.</p>