<?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 : Parent-Child using DevForceEF</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Parent-Child using DevForceEF</description>
  <pubDate>Mon, 13 Apr 2026 20:16:19 -700</pubDate>
  <lastBuildDate>Wed, 07 Jan 2009 04:29:57 -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=1050</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>Parent-Child using DevForceEF : Hi, I&amp;#039;m experimenting with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1050&amp;PID=3780#3780</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=428" rel="nofollow">oldie</a><br /><strong>Subject:</strong> 1050<br /><strong>Posted:</strong> 07-Jan-2009 at 4:29am<br /><br /><DIV>Hi, I'm experimenting with the DevForce and trying to query a table which is self refrencing to create a hierarchy. I renamed the entity&nbsp;navigation properties to&nbsp;Parent and Children.</DIV><DIV>I want a query to return a list of children for a particular parent but get a run time error:</DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2></FONT></FONT>&nbsp;</DIV><DIV>Execution of query against the server was successful but execution of query against the local cache failed</DIV><DIV>&nbsp;</DIV><DIV><EM>Code Snippet:</EM></DIV><DIV><FONT color=#2b91af size=2><FONT color=#2b91af size=2>DomainModelEntityManager</FONT></FONT><FONT size=2> _manager = </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>DomainModelEntityManager</FONT></FONT><FONT size=2>.DefaultManager;</DIV><DIV><DIV></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>BindableList</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Areas</FONT></FONT><FONT size=2>&gt; _areas = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>BindableList</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>Areas</FONT></FONT><FONT size=2>&gt;(); </FONT><FONT size=2></DIV></FONT><FONT size=2><P></P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>private</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> LoadData() {</P><DIV>_areas.ReplaceRange(_manager.Areas.Where(c =&gt; c.Parent.Area.Contains(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"TestParent"</FONT></FONT><FONT size=2>)));</DIV><P>} </P></FONT></DIV><DIV>Does the local cache need initialising first?</DIV><DIV>&nbsp;</DIV><DIV>DevForceEF 4.2.2 </DIV><DIV><DIV>VS2008 SP1</DIV><DIV>Windows XP</DIV><DIV>MSSQL Server 2005</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 07 Jan 2009 04:29:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1050&amp;PID=3780#3780</guid>
  </item> 
 </channel>
</rss>