title: System.Data.SqlClient.SqlException: Invalid column name 'Reference_Id'
body: <p>I have two classes:</p>
  
  <pre><code>public class Product
  {
     public Guid Id {get;set;}
     public IList&lt;Reference&gt; References {get;set;}
  } 
  
  public class Reference
  {
     public Guid Id {get;set;}
  }
  </code></pre>
  
  <p>Both table has many to many relationship and I added in context file.</p>
  
  <pre><code>modelBuilder.Entity&lt;Product&gt;()
                      .HasMany&lt;Reference&gt;(p =&gt; p.References)
                      .WithMany()
                      .Map(pxar =&gt;
                      {
                          pxar.MapLeftKey("Product_Id");
                          pxar.MapRightKey("Reference_Id");
                          pxar.ToTable("ProductsXReferences");
                      });
  </code></pre>
  
  <p>Not sure how to fix the problem. I checked my database tables and connectionstring in Web.Config, everything looks right.</p>