title: Entity Framework 6 - Missing table with only primary keys referencing different tables
body: <p>We are learning Entity Framework 6.1 (from NuGet) as we move away from Linq2Sql.  We have a small handful of tables that associate two separate tables like shown below.</p>
  
  <p>EF6 Database First generation</p>
  
  <p>DB Diagram:</p>
  
  <p><img src="https://i.stack.imgur.com/9vu3m.png" alt="enter image description here"></p>
  
  <p>Schema Overview:</p>
  
  <p><img src="https://i.stack.imgur.com/Z0Cg4.png" alt="enter image description here"></p>
  
  <p>When in Visual studios, blank class library, doing a Database First EF6 EDMX file, the diagram only generates TableA and TableC -- the TableB does not get generated.  </p>
  
  <p><img src="https://i.stack.imgur.com/vrTB1.png" alt="enter image description here"></p>
  
  <p>Visual Studios View:</p>
  
  <p><img src="https://i.stack.imgur.com/3QWpG.png" alt="enter image description here"></p>
  
  <p>You can see that only TableA and TableC are created.  Technically TableB should have been created, because you would want to be able to manage those references.  </p>
  
  <p>The Association between A and C shown in the diagram:</p>
  
  <p><img src="https://i.stack.imgur.com/KU2Ef.png" alt="enter image description here"></p>
  
  <p>I feel like I am missing an option, or misunderstanding a key concept of Entity Framework.  Any idea how to have the missing TableB generated with the T4? The EDMX file does show it, but for some reason it doesn't get generated into a .CS file with the two properties indicating the relationship.</p>
  
  <p>The primary reason we need this, is we extended the EF6 T4 template to add some factory patterns to match our existing models. Because it doesnt generate a class for TableB, we dont get the autogenerated code that we are looking for.</p>
  
  <p>Thoughts / suggestions?  Thanks.</p>