title: Can I get Entity Framework to create code for my many-to-many relationship tables?
body: <p>Say I have the MSSQL tables A, AB and B, where AB is a simple ManyToMany mapping table containing two columns: Primary key for A and Primary key for B. Entity Framework does not generate a class for AB, only a collection of B in A and of A in B. Sometimes I want to list the contents of AB as is. </p>
  
  <p>Is there any way I can get EF to generate code for the AB ManyToMany-table?</p>
  
  <p>PS I'm using <a href="http://blogofrab.blogspot.com/2010/08/maintenance-free-mocking-for-unit.html" rel="nofollow">Rob Halletts Mocking Context Object Generator</a> for code generation. Don't know if this is relevant.</p>