<?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 : Async Navigation in SL causes modified entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Async Navigation in SL causes modified entities</description>
  <pubDate>Sat, 11 Apr 2026 17:57:08 -700</pubDate>
  <lastBuildDate>Wed, 20 Oct 2010 02:06:41 -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=2223</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>Async Navigation in SL causes modified entities : Confirmedthis issue is fixed in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8846#8846</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=877" rel="nofollow">pompomJuice</a><br /><strong>Subject:</strong> 2223<br /><strong>Posted:</strong> 20-Oct-2010 at 2:06am<br /><br /><div style=": -1; :; top:0px; left: 0px; width: 100%; height: 400px;">Confirmed&nbsp;this issue is fixed in 6.06.</div><div style=": -1; :; top:0px; left: 0px; width: 100%; height: 400px;"><br></div><div style=": -1; :; top:0px; left: 0px; width: 100%; height: 400px;"><br></div>]]>
   </description>
   <pubDate>Wed, 20 Oct 2010 02:06:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8846#8846</guid>
  </item> 
  <item>
   <title>Async Navigation in SL causes modified entities : That is good news. Thanks! </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8778#8778</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=877" rel="nofollow">pompomJuice</a><br /><strong>Subject:</strong> 2223<br /><strong>Posted:</strong> 13-Oct-2010 at 7:08am<br /><br />That is good news. Thanks!]]>
   </description>
   <pubDate>Wed, 13 Oct 2010 07:08:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8778#8778</guid>
  </item> 
  <item>
   <title>Async Navigation in SL causes modified entities : pompomJuice - we&amp;#039;ve fixed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8777#8777</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> 2223<br /><strong>Posted:</strong> 13-Oct-2010 at 6:56am<br /><br />pompomJuice - we've fixed this bug in the 6.0.6 release.&nbsp;&nbsp; This release is due out within a week, and an EAP build is available now upon request.]]>
   </description>
   <pubDate>Wed, 13 Oct 2010 06:56:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8777#8777</guid>
  </item> 
  <item>
   <title>Async Navigation in SL causes modified entities :           That is not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8776#8776</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=877" rel="nofollow">pompomJuice</a><br /><strong>Subject:</strong> 2223<br /><strong>Posted:</strong> 13-Oct-2010 at 12:51am<br /><br />That is not going to produce the error. You are not accessing anything asynchronously in that test.<div><br></div><div>The kind of navigation I am talking about is the same as what would happen between the Product.SupplierID relationship.</div><div><br></div><div>Try something like this:</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mgr.ExecuteQueryAsync(mgr.Products).Completed+=(s,e)=&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;e.Results.ToList().ForEach( p =&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p.Supplier.EntityAspect.PendingEntityResolved+=(sender,args)=&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (p.EntityAspect.EntityState == EntityState.Unchanged)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox.Show("EntityState is Unchanged as expected");</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox.Show("Something is wrong. EntityState is " + p.EntityAspect.EntityState.ToString());</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};</div></div><div><br></div><div>The call to r.Supplier triggers devforce to fetch the supplier asynchronously, while handing a fake one to you. So far so good. Once the async &nbsp;fetch is complete however, the fake value is supposed to get a PropertyChangedEvent. Instead no event seems to occur and r.Supplier is marked as modified. Disaster!</div><span style="font-size:10px"><br /><br />Edited by pompomJuice - 13-Oct-2010 at 1:01am</span>]]>
   </description>
   <pubDate>Wed, 13 Oct 2010 00:51:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8776#8776</guid>
  </item> 
  <item>
   <title>Async Navigation in SL causes modified entities : Hi,   How are you acesssing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8769#8769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2223<br /><strong>Posted:</strong> 12-Oct-2010 at 1:15pm<br /><br /><P>Hi, </P><DIV>&nbsp;</DIV><DIV>How are you acesssing the navigation properties?</DIV><DIV>I wrote a small test (below) and the nav properties are Unchanged.</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT face=Verdana>Can you provide a test case (preferably against NorthwindIB) reproducing the issue?</FONT></FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT face=Verdana></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> employeesQuery = mgr.Employees.Include(</FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"Orders"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>);</FONT></FONT></DIV><DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>mgr.ExecuteQueryAsync(</DIV><DIV><DIV>&nbsp; employeesQuery,</DIV><DIV>&nbsp;&nbsp;&nbsp; args =&gt; {</DIV><DIV></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> (args.HasError) {</DIV><DIV></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> args.Error;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</DIV><DIV></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> orders = args.Results.First().Orders;</FONT></FONT></DIV><DIV><FONT size=2><FONT face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff face=C&#111;nsolas>var</FONT></FONT></FONT><FONT face=C&#111;nsolas> numberOfOrders = orders.Count();</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#2b91af><FONT color=#2b91af><FONT color=#2b91af>Random</FONT></FONT></FONT> randNum = <FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff>new</FONT></FONT></FONT> <FONT color=#2b91af><FONT color=#2b91af><FONT color=#2b91af>Random</FONT></FONT></FONT>();</FONT></DIV><DIV><FONT size=2><FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff face=C&#111;nsolas><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>var</FONT></FONT></FONT><FONT face=C&#111;nsolas> index = randNum.Next(numberOfOrders - 1);</FONT></FONT></DIV><DIV><FONT face=C&#111;nsolas><FONT size=2><FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>var</FONT></FONT></FONT> anOrder = orders&#091;index&#093;;</FONT></FONT></DIV><DIV><FONT size=2><FONT face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff><FONT color=#0000ff><FONT color=#0000ff>if</FONT></FONT></FONT> (anOrder.EntityAspect.EntityState == <FONT color=#2b91af><FONT color=#2b91af><FONT color=#2b91af>EntityState</FONT></FONT></FONT></FONT><FONT face=C&#111;nsolas>.Unchanged) {</FONT></FONT></DIV><DIV><DIV><FONT face=C&#111;nsolas><FONT color=#2b91af size=2><FONT color=#2b91af size=2><FONT color=#2b91af size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox</FONT></FONT></FONT><FONT size=2><FONT size=2>.Show(</FONT></FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"EntityState is Unchanged as expected"</FONT></FONT></FONT></FONT><FONT size=2><FONT size=2><FONT face=C&#111;nsolas>);</FONT></DIV><DIV><FONT face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </FONT></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><FONT color=#0000ff size=2 face=C&#111;nsolas>else</FONT></FONT></FONT><FONT size=2><FONT size=2><FONT face=C&#111;nsolas> {</FONT></DIV><DIV></FONT></FONT><FONT face=C&#111;nsolas><FONT color=#2b91af size=2><FONT color=#2b91af size=2><FONT color=#2b91af size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox</FONT></FONT></FONT><FONT size=2><FONT size=2>.Show(</FONT></FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Something is wrong. EntityState is "</FONT></FONT></FONT></FONT><FONT size=2><FONT size=2><FONT face=C&#111;nsolas> + anOrder.EntityAspect.EntityState.ToString());</FONT></DIV><DIV><FONT face=C&#111;nsolas>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV></FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp; },</DIV><DIV></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp;&nbsp; null</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>);</FONT></FONT></DIV></DIV></DIV></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 12 Oct 2010 13:15:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8769#8769</guid>
  </item> 
  <item>
   <title>Async Navigation in SL causes modified entities : Hi.Whenever I access Navigational...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8764#8764</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=877" rel="nofollow">pompomJuice</a><br /><strong>Subject:</strong> 2223<br /><strong>Posted:</strong> 12-Oct-2010 at 8:54am<br /><br />Hi.<div><br></div><div>Whenever I access Navigational properties of entities in Silverlight&nbsp;asynchronously, my entities get marked as "Modified" by devforce. This is causing&nbsp;severe&nbsp;confusion in my UI.</div><div><br></div><div>Any idea when this might be fixed?</div><div><br></div><div>W</div>]]>
   </description>
   <pubDate>Tue, 12 Oct 2010 08:54:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2223&amp;PID=8764#8764</guid>
  </item> 
 </channel>
</rss>