<?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 : How to access nested navigation properties</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : How to access nested navigation properties</description>
  <pubDate>Sat, 16 May 2026 13:17:36 -700</pubDate>
  <lastBuildDate>Wed, 20 Jan 2010 15:56:32 -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=1619</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>How to access nested navigation properties : Anwar:I&amp;#039;m going to expand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1619&amp;PID=6097#6097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1619<br /><strong>Posted:</strong> 20-Jan-2010 at 3:56pm<br /><br />Anwar:<br><br>I'm going to expand a bit on David's answer with a couple of examples of accessing multilevel navigation properties, using entities from NorthwindIB:<br><br><i>&nbsp;&nbsp;&nbsp;&nbsp; anOrder.Customer.Orders<br></i><br>would retrieve all of the Orders (i.e., a collection) for the Customer associated with anOrder.<br><br><i>&nbsp;&nbsp;&nbsp;&nbsp; anOrderDetail.Product.Supplier <br></i><br>would return the Supplier (i.e., a scalar) associated with the Product mentioned in anOrderDetail.<br><br>When operating in an asynchronous environment like Silverlight, you will often want to be notified when retrieval of the referenced entity or entities has completed.&nbsp; For a collection navigation property like <i>anOrder.Customer.Orders </i>you would handle the <i>PendingEntityListResolved </i>event on the referenced property. For a scalar navigation property like <i>anOrderlDetail.Product.Supplier </i>you would handle the <i>PendingEntityResolved </i>event on the referenced property.<br><br>]]>
   </description>
   <pubDate>Wed, 20 Jan 2010 15:56:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1619&amp;PID=6097#6097</guid>
  </item> 
  <item>
   <title>How to access nested navigation properties : Nested navigation properties should...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1619&amp;PID=6093#6093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1619<br /><strong>Posted:</strong> 19-Jan-2010 at 3:52pm<br /><br />Nested navigation properties should end with either a scalar (e.g., Order.Customer.FirstName) or with a list or collection (e.g., Order.Customer.Orders).&nbsp; If you are using a scalar, use a scalar navigation property (such as one that requires PendingEntity). If you are querying for a collection, use a collection navigation property (such as one that requires PendingEntityList).]]>
   </description>
   <pubDate>Tue, 19 Jan 2010 15:52:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1619&amp;PID=6093#6093</guid>
  </item> 
  <item>
   <title>How to access nested navigation properties : Hello All,  My entity model...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1619&amp;PID=6089#6089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=544" rel="nofollow">anwar</a><br /><strong>Subject:</strong> 1619<br /><strong>Posted:</strong> 18-Jan-2010 at 11:43am<br /><br />Hello All,<DIV>&nbsp;</DIV><DIV>My entity model contains multilevel navigation properties, can any one help&nbsp; me how to access multilevel/nested&nbsp; navigation properties.</DIV><DIV>&nbsp;</DIV><DIV>The sample in developer guide shows one level of navigation access. here is the code snippet&nbsp;from dev. guide.</DIV><DIV>&nbsp;</DIV><DIV><TABLE dir=ltr border=1 cellSpacing=0 cellPadding=7 width=531><T><TR><TD height=25 vAlign=top><B><FONT size=1><P>// Retrieve a collection of related entities using a collection navigation property </P><P>targetOrder.OrderDetails.PendingEntityListResolved += </P><P>new EventHandler&lt;PendingEntityListResolvedEventArgs&lt;OrderDetail&gt;&gt;( </P><P>OrderDetails_PendingEntityListResolved); </B></FONT></P></TD></TR></T></TABLE></DIV><DIV>&nbsp;</DIV><DIV><TABLE dir=ltr border=1 cellSpacing=0 cellPadding=7 width=492><T><TR><TD height=25 vAlign=top><B><FONT size=1><P>void OrderDetails_PendingEntityListResolved(object sender, </P><P>PendingEntityListResolvedEventArgs&lt;OrderDetail&gt; e) { </P><P>Console.WriteLine("OrderDetails retrieved: {0}", e.ResolvedEntities.Count); </P><P>} </B></FONT></P></TD></TR></T></TABLE></DIV><DIV>&nbsp;</DIV><DIV>Help will be appricitated.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Anwar</DIV>]]>
   </description>
   <pubDate>Mon, 18 Jan 2010 11:43:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1619&amp;PID=6089#6089</guid>
  </item> 
 </channel>
</rss>