<?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 keyword  - Get All!</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Include keyword  - Get All!</description>
  <pubDate>Tue, 12 May 2026 19:36:20 -700</pubDate>
  <lastBuildDate>Thu, 16 Sep 2010 10:26:48 -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=2159</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 keyword  - Get All! : You mention: &amp;#034;This returns...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2159&amp;PID=8529#8529</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> 2159<br /><strong>Posted:</strong> 16-Sep-2010 at 10:26am<br /><br /><P>You mention:</P><DIV><SPAN style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px" ="Apple-style-span"><strong>"This returns the one city for that address."</strong></SPAN></DIV><DIV>&nbsp;</DIV><DIV>If there is only one city related to the entities satisfying Address, you will only get one. (Should there be more?)</DIV><DIV>&nbsp;</DIV><DIV>As for your question:</DIV><DIV><strong>"how do I return all the cities as part of a eager load..."</strong></DIV><DIV>&nbsp;</DIV><DIV>you can use.</DIV><DIV>&nbsp;</DIV><DIV>EntityManager.Cities.Execute();</DIV><DIV>&nbsp;</DIV><DIV>and thereafter refer to a cacheonly query to retrieve the cities. Or even:</DIV><DIV>&nbsp;</DIV><DIV><strong>"and store it as a property on the Address object."</strong></DIV><DIV>&nbsp;</DIV><DIV>not sure what you mean here. Can you clarify?</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px" ="Apple-style-span"><strong>"I want to use this property to databind a combobox itemssource in a datagrid for user selection."</strong></SPAN></DIV><DIV>&nbsp;</DIV><DIV><DIV>var cities = EntityManager.Cities.Execute();</DIV><DIV>comboBox.ItemSource = cities;</DIV><DIV>&nbsp;</DIV><DIV>I hope this helps.</DIV></DIV>]]>
   </description>
   <pubDate>Thu, 16 Sep 2010 10:26:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2159&amp;PID=8529#8529</guid>
  </item> 
  <item>
   <title>Include keyword  - Get All! : I have a query where I use the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2159&amp;PID=8517#8517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=826" rel="nofollow">Jakes</a><br /><strong>Subject:</strong> 2159<br /><strong>Posted:</strong> 15-Sep-2010 at 6:38am<br /><br /><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">I have a query where I use the "Include" keyword to include a navigation property as so:</span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></font></div>Address.Include("<font color="#0000ff">Cities</font>");</span></font><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">This returns the one city for that address.</span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">My question is, how do I return all the cities as part of a eager load and store it as a property on the Address object.&nbsp;</span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">I want to use this property to databind a combobox itemssource in a datagrid for user selection.</span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><br></span></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Thanks in advance.</span></font></div>]]>
   </description>
   <pubDate>Wed, 15 Sep 2010 06:38:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2159&amp;PID=8517#8517</guid>
  </item> 
 </channel>
</rss>