<?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 : GetEntityGraph</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : GetEntityGraph</description>
  <pubDate>Fri, 12 Jun 2026 11:29:46 -700</pubDate>
  <lastBuildDate>Wed, 06 Jun 2007 12:25: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=39</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>GetEntityGraph : Answer: There is now (as of DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=39&amp;PID=101#101</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 39<br /><strong>Posted:</strong> 06-Jun-2007 at 12:25pm<br /><br /><P =Questi&#111;n style="MARGIN: 0in 0in 0pt"><strong><EM><FONT face="Times New Roman" size=3>Answer:</FONT></EM></strong></P><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><FONT size=2><FONT face="Times New Roman">There is now (as of DevForce version 3.4.0). GetEntityGraph (a new method on the PM) will enable you to obtain a collection of the entire graphs of specified entities, which collection can then be saved, or imported from one PM to another. <B>GetEntityGraph only works with entities in the cache.</B></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 8pt 0in 0pt"><FONT face="Times New Roman" size=2>This is the signature:</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;summary&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> Given any entity or entities in a graph, collects and retrieves all <o:p></o:p></SPAN></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> related entities in the graph. This is a cache-only operation.<o:p></o:p></SPAN></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;/summary&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;param name="pEntityRoots"&gt;</FONT><SPAN style="COLOR: green">A list of entities used as the starting point for retrieving all other related entities</SPAN><FONT color=#808080>&lt;/param&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;param name="pEntitySpans"&gt;</FONT><SPAN style="COLOR: green">One or more </SPAN><FONT color=#808080>&lt;see cref="EntitySpan"/&gt;</FONT><SPAN style="COLOR: green">s</SPAN><FONT color=#808080>&lt;/param&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;param name="pRowState"&gt;</FONT><SPAN style="COLOR: green">RowState of entities to return</SPAN><FONT color=#808080>&lt;/param&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;returns&gt;</FONT><SPAN style="COLOR: green">A list of related Entities</SPAN><FONT color=#808080>&lt;/returns&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;exception cref="ArgumentNullException"&gt;</FONT><SPAN style="COLOR: green">Thrown if pEntityRoots and/or pEntitySpans is null.</SPAN><FONT color=#808080>&lt;/exception&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; ///</FONT><SPAN style="COLOR: green"> </SPAN><FONT color=#808080>&lt;exception cref="ArgumentException"&gt;</FONT><SPAN style="COLOR: green">Thrown if the type in a span does not have a matching type in one of the roots.</SPAN><FONT color=#808080>&lt;/exception&gt;</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: blue">public</SPAN><FONT color=#808080> </FONT><SPAN style="COLOR: teal">EntityList</SPAN><FONT color=#808080>&lt;</FONT><SPAN style="COLOR: teal">Entity</SPAN><FONT color=#808080>&gt; GetEntityGraph(</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: teal">IEnumerable</SPAN><FONT color=#808080>&lt;</FONT><SPAN style="COLOR: teal">Entity</SPAN><FONT color=#808080>&gt; pEntityRoots,</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><FONT size=2><FONT style=": #e6e6e6"><strong><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: teal">IEnumerable</SPAN><FONT color=#808080>&lt;</FONT><SPAN style="COLOR: teal">EntitySpan</SPAN><FONT color=#808080>&gt; pEntitySpans,</FONT></FONT></strong></FONT></FONT></P><P =CodeSnippet style="MARGIN: 0in 0in 0pt 0.25in"><strong><FONT size=2><FONT style=": #e6e6e6"><FONT face="Courier New"><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><SPAN style="COLOR: teal">DataRowState</SPAN><FONT color=#808080> pRowState)<SPAN style="COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></FONT></FONT></FONT></strong></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt"><o:p><FONT size=2>&nbsp;</FONT></o:p></SPAN></P>]]>
   </description>
   <pubDate>Wed, 06 Jun 2007 12:25:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=39&amp;PID=101#101</guid>
  </item> 
  <item>
   <title>GetEntityGraph : Question:  I want to save changes...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=39&amp;PID=100#100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=20" rel="nofollow">Customer</a><br /><strong>Subject:</strong> 39<br /><strong>Posted:</strong> 06-Jun-2007 at 12:25pm<br /><br /><P style="MARGIN: 0in 0in 0pt" ="Questi&#111;n"><strong><EM><FONT face="Times New Roman" size=3>Question: </FONT></EM></strong></P><P style="MARGIN: 8pt 0in 0pt" ="Ms&#111;normal"><FONT face="Times New Roman" size=2>I want to save changes to a particular set of objects (e.g., Employees whose LastName starts with “G”) and all of their related objects (e.g., Orders, OrderDetails, Customers, Products, Shippers, and Suppliers) . Or maybe I want to copy that set of objects and related objects into a separate PersistenceManager. Is there an easy way to collect that set of objects into a single list?</P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal">Includes several test cases for a variety of scenarios: 1 root 1 span, 2 roots 1 spans, 2 roots 2<SPAN style="COLOR: navy; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt"> spans, etc.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P></FONT><span style="font-size:10px"><br /><br />Edited by Customer - 06-Jun-2007 at 12:27pm</span>]]>
   </description>
   <pubDate>Wed, 06 Jun 2007 12:25:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=39&amp;PID=100#100</guid>
  </item> 
 </channel>
</rss>