title: Entityframework duplicating when calling savechanges
body: <p>I am using entityframework 5 code first, I have a model like this.</p>
  
  <pre><code>class Product {
      public Product() {
          Fabrics = new BindingList&lt;FabricLineItem&gt;();
      }
      ...
      public virtual ICollection&lt;FabricLineItem&gt; Fabrics { get;set; }
  }
  
  class FabricLineItem {
      [ForeignKey("Fabric")]
      public int FabricId { get; set; }  
      public virtual Product Product { get;set; }
      public virtual Fabric Fabric { get;set; }  
  }
  
  class Fabric {
      ...
  }
  </code></pre>
  
  <p>I already have fabrics in my database. I create a new product object and add some fabriclineitems to the collection. When I try to save product what happens is it duplicates the fabric in the database and reference it to the new one after calling </p>
  
  <pre><code> DataContext.SaveChanges(); 
  </code></pre>
  
  <p>Before the call to savechanges the values in the debugger are correct by after calling they are changed ? Any idea why I am getting this strange behavior ?</p>