<?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 : Computed Properties when fetching Async</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Computed Properties when fetching Async</description>
  <pubDate>Thu, 23 Apr 2026 18:28:58 -700</pubDate>
  <lastBuildDate>Thu, 01 Nov 2012 17:57:34 -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=3755</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>Computed Properties when fetching Async : Don&amp;#039;t put something like...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3755&amp;PID=15050#15050</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> 3755<br /><strong>Posted:</strong> 01-Nov-2012 at 5:57pm<br /><br />Don't put something like this into the entity itself. It gets messy. You'll have to wait for each navigation to complete before you can walk the next level down.&nbsp;<div><br></div><div>This is something that belongs into a service on the unit of work as an asynchronous method. The method will retrieve all the necessary data and return the value asynchronously.&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 01 Nov 2012 17:57:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3755&amp;PID=15050#15050</guid>
  </item> 
  <item>
   <title>Computed Properties when fetching Async : I have a property on an entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3755&amp;PID=15037#15037</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> 3755<br /><strong>Posted:</strong> 01-Nov-2012 at 12:36pm<br /><br />I have a property on an entity called PathName. This property is not mapped to a field in the database. It will return a string value similar to below:<DIV>&nbsp;</DIV><DIV>Entity1.Name -&gt; Entity2.Name -&gt; Entity3.Name -&gt; this.Name </DIV><DIV>&nbsp;</DIV><DIV>The property would be on "this". I am using Async by default for all queries. When NOT using Async, I can simply return the value as such:</DIV><DIV>&nbsp;</DIV><DIV>return string.Format("{1} {0} {2} {0} {3} {0} {4}", "-&gt;", </DIV><DIV>&nbsp;&nbsp;&nbsp; this.Entity3.Entity2.Entity1.Name,</DIV><DIV>&nbsp;&nbsp;&nbsp; this.Entity2.ENtity1.Name,</DIV><DIV>&nbsp;&nbsp;&nbsp; this.Entiity1.Name,</DIV><DIV>&nbsp;&nbsp;&nbsp; this.Name;</DIV><DIV>&nbsp;</DIV><DIV>If I do this with Async on by default, Entity1, 2, and 3 are not available immediately and the string is returned imcomplete. How would I code these kinds of "computed" properties where the property has to fetch data from other related entities (potentially through a complex query)?</DIV><DIV>&nbsp;</DIV><DIV>I know if I create&nbsp;a query for "this" and put Includes for Entity1, 2 and 3, this will work properly but that requires the developer to know to include those properties on every query.</DIV><DIV>&nbsp;</DIV><DIV>I am using the Repository pattern from Coctail if that helps any and usually use the FindAsync method to get various lists of "this". Again, what would the recommended way to getting these entities without the developer having to always include the additional Includes?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 01 Nov 2012 12:36:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3755&amp;PID=15037#15037</guid>
  </item> 
 </channel>
</rss>