title: Fluent NHibernate - Many To Many Relationship
body: <p>I have <strong>Product</strong> and <strong>Category</strong> tables in database.</p>
  
  <p>One product can have many categories. <br/>
  One category can have many products.</p>
  
  <p>So, I have a third table as <strong>ProductCategory</strong>, which has ProductID and CategoryID.</p>
  
  <p>In Fluent NHibernate, what should the mapping class look like?</p>
  
  <p>For example, For <strong>ProductMap</strong> class is this correct:</p>
  
  <pre><code>HasMany(x =&gt; x.Categories).Table("tProductCategory").KeyColumn("CategoryId);
  </code></pre>