<?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 Navigational Properties</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Async Navigational Properties</description>
  <pubDate>Tue, 12 May 2026 23:21:37 -700</pubDate>
  <lastBuildDate>Tue, 30 Oct 2012 17:22:51 -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=3749</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 Navigational Properties :   How are you checkingif the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15017#15017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3749<br /><strong>Posted:</strong> 30-Oct-2012 at 5:22pm<br /><br />How are you checking&nbsp;if the entity is detached? The debugger is not a reliable way to inspect the EntityAspect. Use the Immediate Window to check the entity state.<div>&nbsp;</div><div>Read the last paragraph in my best practices blog post for advise on navigation properties.</div><div>&nbsp;</div><div><a href="http://cocktail.ideablade.com/best-practices-for-the-real-world/" target="_blank">http://cocktail.ideablade.com/best-practices-for-the-real-world/</a></div>]]>
   </description>
   <pubDate>Tue, 30 Oct 2012 17:22:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15017#15017</guid>
  </item> 
  <item>
   <title>Async Navigational Properties : This is WPF application. Since...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15015#15015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=118" rel="nofollow">LowOrbit</a><br /><strong>Subject:</strong> 3749<br /><strong>Posted:</strong> 30-Oct-2012 at 4:26pm<br /><br />This is WPF application. Since I'm using a Repository from Cocktail, all&nbsp;the repository methods do queries ASync. But I have overriden the DefaultEntityReferenceStrategy property and set it to NOT use async when fetching navigational properties. <DIV>&nbsp;</DIV><DIV>And no, the entity I'm getting back is not a NullEntity because all the fields are populated from the database as I would expect, it's just the EntityState is saying it's Detached. </DIV><DIV>&nbsp;</DIV><DIV>Also, if I fetch my main entity using the Repository and put an Include on it, the related Entity comes back as expected (not a NullEntity) but it is still Detached. It doesn't appear to make any difference whether you get the related entity via an Include or reference it by lazy loading.</DIV><DIV>&nbsp;</DIV><DIV>Ultimately, I want to change my application to&nbsp;fetch all navigational properties using Async also. Unfortunately, we have a lot of UI that&nbsp;is referencing a navigational property in the UI bindings via a path (i.e.&nbsp;&nbsp;&nbsp;&nbsp; Entity.TaskSchedule.Name). TaskSchedule in this case is a navigational property. When fetched Async, TaskSchedule comes back as a PendingEntity and the binding will show Name as blank initially. I can't seem to get the UI to refresh properly when the PendingEntity is finally complete which is why I switched all the Navigation properties to fetch syncronously. </DIV><DIV>&nbsp;</DIV><DIV>Do you have an example of how to use the Repositories to fetch navigational properties? </DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Tue, 30 Oct 2012 16:26:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15015#15015</guid>
  </item> 
  <item>
   <title>Async Navigational Properties : Silverlight or WPF? If the former,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15013#15013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3749<br /><strong>Posted:</strong> 30-Oct-2012 at 3:36pm<br /><br />Silverlight or WPF? If the former, navigations are always asynchronous and in WPF they are synchronous by default.&nbsp;<div><br></div><div>You might be getting the NullEntity.&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/null-entity" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/null-entity</a></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 30 Oct 2012 15:36:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15013#15013</guid>
  </item> 
  <item>
   <title>Async Navigational Properties : Hello  I am using the Cocktail...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15007#15007</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=118" rel="nofollow">LowOrbit</a><br /><strong>Subject:</strong> 3749<br /><strong>Posted:</strong> 30-Oct-2012 at 11:40am<br /><br />Hello<DIV>&nbsp;</DIV><DIV>I am using the Cocktail framework in our application. I have created a Repository object to perform queries on an entity. For example, I have a simple&nbsp;query that fetches a single&nbsp;entity (uses WithIdAsync). This operation returns successfully. I then try to fetch another record via a <FONT size=2>navigation </FONT>property of that entity. I have set the DefaultEntityReferenceStrategy to </DIV><DIV>&nbsp;</DIV><DIV>new EntityReferenceStrategy(EntityReferenceLoadStrategy.Lazy, MergeStrategy.OverwriteChanges, false)</DIV><DIV>&nbsp;</DIV><DIV>which basically tells DevForce to NOT use Async for navigation properties. The problem I'm running into is that any navigation properties fetched this way come back with an EntityState of Detached. Is this really supposed to be the case? Shouldn't any entities fetched via a navigation property come back as Unchanged?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>Robert</DIV>]]>
   </description>
   <pubDate>Tue, 30 Oct 2012 11:40:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3749&amp;PID=15007#15007</guid>
  </item> 
 </channel>
</rss>