<?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 : Sorry, recursive saves are not supported.</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Sorry, recursive saves are not supported.</description>
  <pubDate>Wed, 29 Jul 2026 13:34:02 -700</pubDate>
  <lastBuildDate>Tue, 15 Feb 2011 21:57:52 -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=2505</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>Sorry, recursive saves are not supported. : Thanks Denis. For now I changed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9966#9966</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 2505<br /><strong>Posted:</strong> 15-Feb-2011 at 9:57pm<br /><br />Thanks Denis.&nbsp; For now I changed it to just be straight SQL ala ADOHelper.&nbsp; Later I may try and change it to be option #1 for better performance.<br>]]>
   </description>
   <pubDate>Tue, 15 Feb 2011 21:57:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9966#9966</guid>
  </item> 
  <item>
   <title>Sorry, recursive saves are not supported. : mikewishart;I had a discussion...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9959#9959</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> 2505<br /><strong>Posted:</strong> 15-Feb-2011 at 11:14am<br /><br />mikewishart;<div><br></div><div>I had a discussion with a senior engineer about your use case. Here are her suggestions.</div><div><br></div><div>1. Consider doing the deleting of the tasks before the base.ExecuteSave, if possible, since those deletes will all then be included in the save.</div><div><br></div><div>2. Or consider using db triggers instead of DevForce.</div><div><br></div><div>3. Or consider listening for entity changes and "trigger" the deletes on the client.</div><div><br></div><div>Hope this helps.</div>]]>
   </description>
   <pubDate>Tue, 15 Feb 2011 11:14:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9959#9959</guid>
  </item> 
  <item>
   <title>Sorry, recursive saves are not supported. : We have a table of tasks associated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9947#9947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 2505<br /><strong>Posted:</strong> 14-Feb-2011 at 2:01pm<br /><br />We have a table of tasks associated with objects in a certain state.&nbsp; If, for whatever reason, the objects change state the tasks are no longer valid.&nbsp; This is more of a proactive thing where the tasks should be deleted within the same transaction as changing the object's state, but rather than tracking down every related bug, we can write a general purpose query to do this and not worry about it.]]>
   </description>
   <pubDate>Mon, 14 Feb 2011 14:01:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9947#9947</guid>
  </item> 
  <item>
   <title>Sorry, recursive saves are not supported. : Hi mikewishart;Could you elaborate...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9946#9946</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> 2505<br /><strong>Posted:</strong> 14-Feb-2011 at 1:55pm<br /><br />Hi mikewishart;<div><br></div><div>Could you elaborate further on your use case here? I'm still unclear why you want to perform a delete operation inside the save interceptor. If you want to perform a delete after a save, why can't you do it outside the interceptor, for example, after the mgr.SaveChanges call?</div>]]>
   </description>
   <pubDate>Mon, 14 Feb 2011 13:55:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9946#9946</guid>
  </item> 
  <item>
   <title>Sorry, recursive saves are not supported. : Just had to post that very nice...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9934#9934</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=704" rel="nofollow">mikewishart</a><br /><strong>Subject:</strong> 2505<br /><strong>Posted:</strong> 11-Feb-2011 at 7:18pm<br /><br />Just had to post that very nice polite error message!<br><br>In the EntityServerSaveInterceptor, I want to clean up potential orphans by deleting the records AFTER the base.ExecuteSave() has been called.&nbsp; After all, they may have already cleaned up the orphaned records, or perhaps they modified associated entities in such a way that they aren't orphans.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var orphans = EntityManager.GetQuery&lt;OrphanTable&gt;()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .With(QueryStrategy.DataSourceOnly)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Where(somePredicate)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToList();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var orphan in orphans)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; orphan.EntityAspect.Delete();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EntityManager.SaveChanges(orphans);<br><br>The last line is where I get the error.&nbsp; Any chance of getting it to save further updates?<br><br>Thanks!<br><br>]]>
   </description>
   <pubDate>Fri, 11 Feb 2011 19:18:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2505&amp;PID=9934#9934</guid>
  </item> 
 </channel>
</rss>