<?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 : Undo Delete</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Undo Delete</description>
  <pubDate>Sun, 12 Apr 2026 05:18:27 -700</pubDate>
  <lastBuildDate>Thu, 04 Nov 2010 10:23:12 -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=1954</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>Undo Delete : Hi,   You could AcceptChanges...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=9021#9021</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> 1954<br /><strong>Posted:</strong> 04-Nov-2010 at 10:23am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>You could AcceptChanges before Delete'ing the entity. Later, if you need to undelete the entity, you would use&nbsp;SetModified.</DIV><DIV>&nbsp;</DIV><DIV>A&nbsp;drawback is that, if you undelete,&nbsp;once you SaveChanges, that entity will be "resaved". (i.e. travel accross the wire)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I hope this helps.</DIV>]]>
   </description>
   <pubDate>Thu, 04 Nov 2010 10:23:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=9021#9021</guid>
  </item> 
  <item>
   <title>Undo Delete : Is there any way to undo only...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=9020#9020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=893" rel="nofollow">Robert R</a><br /><strong>Subject:</strong> 1954<br /><strong>Posted:</strong> 04-Nov-2010 at 8:40am<br /><br />Is there any way to undo only the deletion without rejecting all changes to the entity?<DIV>&nbsp;</DIV><DIV>I have a situation similar to the original post.&nbsp; If the user made changes to properties of the entity, but then deletes it and then undeletes it, I would like those property changes to still be in effect.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 04 Nov 2010 08:40:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=9020#9020</guid>
  </item> 
  <item>
   <title>Undo Delete : entity.EntityAspect.RejectChanges() ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=7570#7570</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 1954<br /><strong>Posted:</strong> 08-Jul-2010 at 12:21pm<br /><br />entity.EntityAspect.RejectChanges()]]>
   </description>
   <pubDate>Thu, 08 Jul 2010 12:21:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=7570#7570</guid>
  </item> 
  <item>
   <title>Undo Delete : I have an observable collection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=7569#7569</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=587" rel="nofollow">cjohnson84</a><br /><strong>Subject:</strong> 1954<br /><strong>Posted:</strong> 08-Jul-2010 at 12:10pm<br /><br />I have an observable collection that is bound to a datagrid.&nbsp; I have a templated column that contains a "Delete" button for each row.&nbsp; When the user clicks the "Delete" button for a specific row the entity is "marked" for deletion.&nbsp; Programmatically I do this with the following line:<DIV>&nbsp;</DIV><DIV>entity.EntityAspect.Delete();</DIV><DIV>&nbsp;</DIV><DIV>Eventually when the user clicks a "Save" button the entity is truly deleted from the database.</DIV><DIV>&nbsp;</DIV><DIV>My question is, once a row in the datagrid is marked for deletion I would like to be able to allow the user to click the "Delete" button again to "undo" the delete operation.</DIV><DIV>&nbsp;</DIV><DIV>How do I achieve this?</DIV><DIV>&nbsp;</DIV><DIV>I was looking at</DIV><DIV>&nbsp;</DIV><DIV>entity.EntityAspect.AcceptChanges()</DIV><DIV>&nbsp;</DIV><DIV>this sets the state of the entity to "Detached" though...I want set the state of the entity back to "Unchanged" as if it was never touched at all but EntityState is read only.</DIV>]]>
   </description>
   <pubDate>Thu, 08 Jul 2010 12:10:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1954&amp;PID=7569#7569</guid>
  </item> 
 </channel>
</rss>