<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : trouble with RefetchEntities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : trouble with RefetchEntities</description>
  <pubDate>Sat, 11 Apr 2026 21:44:35 -700</pubDate>
  <lastBuildDate>Fri, 24 Jun 2011 08:02:52 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2795</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>trouble with RefetchEntities : I cannot seem to get the RefetchEntities...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2795&amp;PID=11100#11100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=643" rel="nofollow">downeytim</a><br /><strong>Subject:</strong> 2795<br /><strong>Posted:</strong> 24-Jun-2011 at 8:02am<br /><br />I cannot seem to get the RefetchEntities to work for us. &nbsp;I have a PersistanceManager loaded with items. &nbsp;I process some data in a WCF Service that adds records related to my main entity.&nbsp;<div><br></div><div><br></div><div><div>Session.PM.RefetchEntities(app.CommTransactions, MergeStrategy.OverwriteChanges);</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>foreach (CommTransaction ct in app.CommTransactions.ToList())</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">					</span>Session.PM.RefetchEntities(ct.CompanyCBResults, MergeStrategy.OverwriteChanges);</div><div><span ="Apple-tab-span" style="white-space:pre">					</span>Session.PM.RefetchEntities(ct.PrincipalCBResults, MergeStrategy.OverwriteChanges);</div><div><span ="Apple-tab-span" style="white-space:pre">					</span>Session.PM.RefetchEntities(ct.SubmissionErrors, MergeStrategy.OverwriteChanges);</div><div><span ="Apple-tab-span" style="white-space:pre">					</span>ct.PrincipalCBResults.ToList().ForEach(p =&gt; Session.PM.RefetchEntities(p.PrincipalCBTradeLines, <span ="Apple-tab-span" style="white-space:pre">						</span>MergeStrategy.OverwriteChanges));</div><div><span ="Apple-tab-span" style="white-space:pre">				</span>}</div></div><div><br></div><div>The code above does not fetch any new records that were added to the SubmissionErrors collection. &nbsp;I can't understand why.</div><div><br></div><div>If anyone has any ideas please let me know. &nbsp;We are supposed to release to production in less than 2 weeks. &nbsp;I am in a real bind here if I can't get this to work.</div>]]>
   </description>
   <pubDate>Fri, 24 Jun 2011 08:02:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2795&amp;PID=11100#11100</guid>
  </item> 
 </channel>
</rss>