title: The context is not currently tracking the entity
body: <p>I am using <a href="http://msdn.microsoft.com/en-us/library/dd756368%28v=vs.110%29.aspx" rel="nofollow">WCF DataService</a> and the AutoMapper to Map the objects.</p>
  
  <p>The below sample works fine when I get the single entity.</p>
  
  <pre><code>BOND contextBond = this.agent.Context.BONDS.Where(x =&gt; x.SECURITY_ID == Security.SECURITY_ID).FirstOrDefault();
  Mapper.Map&lt;BondItem, BOND&gt;(this.Bond, contextBond);
  this.agent.Context.UpdateObject(contextBond);
  </code></pre>
  
  <p>The below is the implementation for List Object. I am getting an exception <em>"The context is not currently tracking the entity."</em> at the last line</p>
  
  <pre><code>List&lt;SECURITY_XREF&gt; contextXREF = this.agent.Context.SECURITY_XREF.Where(x =&gt; x.SECURITY_ID == Security.SECURITY_ID).ToList();
  Mapper.Map&lt;List&lt;SecurityXrefItem&gt;, List&lt;SECURITY_XREF&gt;&gt;(this.Xref, contextXREF);
  this.agent.Context.UpdateObject(contextXREF);
  </code></pre>
  
  <p>Any Idea How can I resolve the issue? In other words how can I pass the List Objects to the UpdateObject Methods.</p>
  
  <p>Thx</p>