<?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 : Entity not getting Deleted</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Entity not getting Deleted</description>
  <pubDate>Sun, 12 Apr 2026 20:41:48 -700</pubDate>
  <lastBuildDate>Mon, 13 Jun 2011 13:51: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=2756</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>Entity not getting Deleted : When you remove the entity, you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2756&amp;PID=10964#10964</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 2756<br /><strong>Posted:</strong> 13-Jun-2011 at 1:51pm<br /><br /><DIV>When you remove the entity, you are just detaching it, which of course would not result it in being deleted from the datasource. What you want to do is mark it for deletion with Delete(), and then SaveChanges().</DIV><DIV>&nbsp;</DIV><DIV>Here is the DRC page on this: <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/entity-deleti&#111;n" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/entity-deletion</A></DIV><DIV>&nbsp;</DIV><DIV>Some of our newer examples do show this in effect. For example, if you look at the Tour of Silverlight example, you'll find these methods in the view model:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;<FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><P>private</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>void</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> Delete(</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IEnumerable</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;Employee&gt; employees) {</P><P>employees.ForEach(employee =&gt; employee.EntityAspect.Delete());</P><P>Save();</P><P>}</P><DIV>&nbsp;</DIV><DIV>Sorry if the samples you have are out of date. You may want to download new versions from the DRC.</DIV><DIV>&nbsp;</DIV><DIV>Yours,</DIV><DIV>Robert</DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 13 Jun 2011 13:51:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2756&amp;PID=10964#10964</guid>
  </item> 
  <item>
   <title>Entity not getting Deleted : Hi,I am using IdeaBlade version...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2756&amp;PID=10943#10943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1178" rel="nofollow">Inder_gujral</a><br /><strong>Subject:</strong> 2756<br /><strong>Posted:</strong> 12-Jun-2011 at 8:16am<br /><br />Hi,<br><br>I am using IdeaBlade version 6.0.8.1 Entity Model Extension Dlls. How to delete an entity?<br><br>If I use Context.RemoveEntity(entity) and do a SaveChangeAsync(). The data still stays in the database.<br><br>I checked the samples provided for delete and update. There you are using entity.DeleteGraph() method which is available for each entity.<br><br>But in version 6.0.8.1, the deletegraph method is not available. Can you please tell how to delete the entity?<br><br>I am not facing any error. Its just the operation executes but data still stays in db.<br><br>Looking forward to your quick response.<br><br>Thanks<br>Inder Gujral<br>]]>
   </description>
   <pubDate>Sun, 12 Jun 2011 08:16:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2756&amp;PID=10943#10943</guid>
  </item> 
 </channel>
</rss>