<?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 get all errors from EntityManager</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : How to get all errors from EntityManager</description>
  <pubDate>Tue, 12 May 2026 23:24:34 -700</pubDate>
  <lastBuildDate>Wed, 06 Feb 2013 10:35:17 -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=3975</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 get all errors from EntityManager :   Thanks! This is what I needed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3975&amp;PID=15821#15821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3975<br /><strong>Posted:</strong> 06-Feb-2013 at 10:35am<br /><br />Thanks! This is what I needed]]>
   </description>
   <pubDate>Wed, 06 Feb 2013 10:35:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3975&amp;PID=15821#15821</guid>
  </item> 
  <item>
   <title>How to get all errors from EntityManager : Hi katit,   You might want to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3975&amp;PID=15799#15799</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> 3975<br /><strong>Posted:</strong> 05-Feb-2013 at 12:37pm<br /><br />Hi katit, <br /><br />You might want to get the entity graph. i.e.:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />  var rootEntities = new List&lt;Entity&gt;();<br />  rootEntities.Add(someEmployees);<br /><br />  var spans = new List&lt;EntitySpan&gt;();<br /><br />  EntitySpan span = new EntitySpan(typeof(Employee),<br />&nbsp;&nbsp;&nbsp;&nbsp;EntityRelations.FK_Order_Employee,<br />&nbsp;&nbsp;&nbsp;&nbsp;EntityRelations.FK_OrderDetail_Order,<br />&nbsp;&nbsp;&nbsp;&nbsp;EntityRelations.FK_OrderDetail_Product);<br /><br />  spans.Add(span);<br /><br />  var entityGraph = manager.FindEntityGraph(rootEntities, spans, EntityState.AllButDetached);<br /></pre></td></tr></table><br /><span style="font-size:10px"><br /><br />Edited by sbelini - 05-Feb-2013 at 12:38pm</span>]]>
   </description>
   <pubDate>Tue, 05 Feb 2013 12:37:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3975&amp;PID=15799#15799</guid>
  </item> 
  <item>
   <title>How to get all errors from EntityManager :    Currently I&amp;#039;m using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3975&amp;PID=15792#15792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3975<br /><strong>Posted:</strong> 04-Feb-2013 at 5:00pm<br /><br />Currently I'm using following pattern to get verification errors out of CurrentItem&lt;T&gt;<div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>public List&lt;string&gt; ValidationErrors<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var validationErrors = new List&lt;string&gt;();</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (this.CurrentItem != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; validationErrors.AddRange((from errors in this.CurrentItem.EntityAspect.ValidationErrors select errors.Message).ToList());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return validationErrors;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div></pre></td></tr></table></div><div>&nbsp;</div><div>I want to make sure child items also covered, in case I do header/detail manipulation I want to see errors from "Order" and "OrderLine"</div><div>&nbsp;</div><div>EDITED:</div><div>&nbsp;</div><div>I know how to easily get all entities within manager but it might contain other records I don't care about. I really want to verify just "Graph" So, ideally I want to iterate only main item and it's childs/subchilds.</div><div>&nbsp;</div><span style="font-size:10px"><br /><br />Edited by katit - 04-Feb-2013 at 5:13pm</span>]]>
   </description>
   <pubDate>Mon, 04 Feb 2013 17:00:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3975&amp;PID=15792#15792</guid>
  </item> 
 </channel>
</rss>