<?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 : Include child of child</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Include child of child</description>
  <pubDate>Sun, 12 Apr 2026 08:52:35 -700</pubDate>
  <lastBuildDate>Wed, 23 Nov 2011 12:42:08 -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=3107</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>Include child of child : Hi Scott;In this case, we actually...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3107&amp;PID=12105#12105</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3107<br /><strong>Posted:</strong> 23-Nov-2011 at 12:42pm<br /><br />Hi Scott;<div><br></div><div>In this case, we actually need to use the non-strongly typed version of Include.</div><div><br></div><div>manager.Orders.Include("OrderDetails.Product").Execute();</div><div><br></div><div>Please see&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/include-related-entities" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/include-related-entities</a>&nbsp;for more details.</div><div><br></div><div>Hope this helps.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 23 Nov 2011 12:42:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3107&amp;PID=12105#12105</guid>
  </item> 
  <item>
   <title>Include child of child :   I&amp;#039;ve got what is probably...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3107&amp;PID=12104#12104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1120" rel="nofollow">scottarlp</a><br /><strong>Subject:</strong> 3107<br /><strong>Posted:</strong> 23-Nov-2011 at 9:57am<br /><br />I've got what is probably a silly problem. I want to include the child of a child in my query. The problem appears to be the fact that my grandchild is m:1 and the only syntax I see examples for (and work) are for 1:m. I have the following type of data.<div>&nbsp;</div><div>Order - Standard type of order example.</div><div>Order Detail - 1:m with Order, the line items of an order.</div><div>Product - Referenced by Order Detail as m:1 (Order Detail : Product).</div><div>&nbsp;</div><div>I've got a query something like the following.</div><div>&nbsp;</div><div>var query = </div><div>manager.Order</div><div>.Include(Order.PathFor(order =&gt; order.OrderDetails);</div><div>&nbsp;</div><div>This works fine and fetches from the db once as expected. However, I'm trying to display product for the Order Detail in a grid and since it's not included (or in cache at the time), it does a lazy call for every record to retrieve the Product record.</div><div>&nbsp;</div><div>In the examples of using 1:m includes, it looks like you can do this:</div><div>&nbsp;</div><div><div>var query = </div><div>manager.Order</div><div>.Include(Order.PathFor(order =&gt; order.OrderDetails)</div><div>.Include(Order.PathFor(order =&gt; order.OrderDetails.Products);</div><div>&nbsp;</div><div>But since that relationship is m:1, you don't get an option for the Products relation. Is there some other way other than just flat querying the Product table to load it in cache (in my real example, it's actually several related tables).</div><div>&nbsp;</div><div>Thanks,</div><div>Scott</div></div>]]>
   </description>
   <pubDate>Wed, 23 Nov 2011 09:57:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3107&amp;PID=12104#12104</guid>
  </item> 
 </channel>
</rss>