<?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 : Requery not matching Navigation properties as expected</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Requery not matching Navigation properties as expected</description>
  <pubDate>Sat, 11 Apr 2026 18:00:18 -700</pubDate>
  <lastBuildDate>Fri, 19 Nov 2010 09:14:22 -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=2238</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>Requery not matching Navigation properties as expected : Well ... it did turn out that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=9164#9164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2238<br /><strong>Posted:</strong> 19-Nov-2010 at 9:14am<br /><br />Well ... it did turn out that the existing logic was intentional.&nbsp;&nbsp; Ideally, DevForce would be able to detect the "ghost" entities during a requery and remove them from cache, but can't do so with related entities queried via an "Include".&nbsp; Ken, the latest 6.0.7 EAP build you have contains fixes for all bugs found by midnit related to cache coherence and import/requerying, and you should stick with your workaround.]]>
   </description>
   <pubDate>Fri, 19 Nov 2010 09:14:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=9164#9164</guid>
  </item> 
  <item>
   <title>Requery not matching Navigation properties as expected : We&amp;#039;ve been dealing with this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=9161#9161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 2238<br /><strong>Posted:</strong> 19-Nov-2010 at 7:20am<br /><br />We've been dealing with this same issue for about a year and a half now, but we had just assumed this was how things were supposed to work regarding entity deletion and cached entities.&nbsp; Our workaround was always to make a call to remove the 'child' entities from the entity manager before performing the requery.&nbsp; Reading this, it sounds like this behavior wasn't intentional at all.&nbsp; What's the status on this fix?&nbsp; Once&nbsp;fixed, would the EntityState of the deleted "DealTrx" entities in cache&nbsp;be Detatched after the requery or would they simply no longer be in the cache?]]>
   </description>
   <pubDate>Fri, 19 Nov 2010 07:20:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=9161#9161</guid>
  </item> 
  <item>
   <title>Requery not matching Navigation properties as expected : You&amp;#039;re not missing anything,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=8866#8866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2238<br /><strong>Posted:</strong> 20-Oct-2010 at 7:37pm<br /><br />You're not missing anything, this is unfortunately a bug.&nbsp; A process known as "ghosting", where cleanup of the "ghost" data is done, is not occurring here.&nbsp; We've opened a very high priority bug report to get this fixed.&nbsp; ]]>
   </description>
   <pubDate>Wed, 20 Oct 2010 19:37:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=8866#8866</guid>
  </item> 
  <item>
   <title>Requery not matching Navigation properties as expected : We have an EntityManager that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=8821#8821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2238<br /><strong>Posted:</strong> 19-Oct-2010 at 10:08am<br /><br /><P>We have an EntityManager that contains Deals and a Deal has DealTrxs. If the client has cached a Deal that has 4 DealTrxs and then it gets notified that the Deal has been changed it requeries that single Deal with basically a full object graph defined in its query and we expect the Deal to fully represent the latest state of the Deal based on whats in the database.</P><DIV></DIV>What I seeing though, is that if the Deal has more DealTrxs it shows correctly, but if the Deal has lost DealTrxs then the current cache of the Deal continues to show however many DealTrxs it had to begin with. <DIV>&nbsp;</DIV><DIV>1. So on my screen I have Deal with 4 DealTrxs</DIV><DIV>2. On your screen you delete 2 of the DealTrxs and save</DIV><DIV>3. My screen see's your change and requeries (DataSourceOnly)&nbsp;that Deal&nbsp;(with its graph), afterwhich it still shows 4 DealTrxs on my screen and in my EntityManager.</DIV><DIV>&nbsp;</DIV><DIV>The database has the correct data but my EntityManager is showing me bad data. What am I missing to get this data properly synced? This also makes it so if I try to edit the Deal on my screen when I save the changes there is a concurrency error.</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by midnit - 19-Oct-2010 at 10:15am</span>]]>
   </description>
   <pubDate>Tue, 19 Oct 2010 10:08:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2238&amp;PID=8821#8821</guid>
  </item> 
 </channel>
</rss>