<?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 : Deleting Record</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Deleting Record</description>
  <pubDate>Sun, 19 Apr 2026 03:49:38 -700</pubDate>
  <lastBuildDate>Fri, 20 Aug 2010 04:26:33 -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=2073</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>Deleting Record : Finallywork with this code..STUDENT...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8111#8111</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2073<br /><strong>Posted:</strong> 20-Aug-2010 at 4:26am<br /><br />Finally<br>work with this code..<br><br>STUDENT stud = Students.Where(t =&gt; t.ID == Convert.ToDecimal(_id)).Single();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stud.EntityAspect.Delete();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Students.Remove(stud);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _mgr.SaveChangesAsync();<br>]]>
   </description>
   <pubDate>Fri, 20 Aug 2010 04:26:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8111#8111</guid>
  </item> 
  <item>
   <title>Deleting Record : Before you call Delete(), you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8107#8107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2073<br /><strong>Posted:</strong> 19-Aug-2010 at 6:00pm<br /><br />Before you call Delete(), you should also remove it from the datasource for the grid.&nbsp; Once delete is called, the entity will be in a detached state and should not have any operations performed on it.&nbsp; As Mark points out, SaveChangesAsync() will then finally commit the delete to the database.<DIV></DIV>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 18:00:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8107#8107</guid>
  </item> 
  <item>
   <title>Deleting Record : STUDENT stud = Students.Where(t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8097#8097</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> 2073<br /><strong>Posted:</strong> 19-Aug-2010 at 9:19am<br /><br />STUDENT stud = Students.Where(t =&gt; t.ID == Convert.ToDecimal(_id)).Single();<br>stud.EntityAspect.Delete();<br>_mgr.SaveChangesAsync();<br><br>That should do everything you need... stud is not coming back as a null entity, correct?<br>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 09:19:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8097#8097</guid>
  </item> 
  <item>
   <title>Deleting Record : I did but Its not deleting records.....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8096#8096</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2073<br /><strong>Posted:</strong> 19-Aug-2010 at 9:17am<br /><br />I did <br>but Its not deleting records.. neither showing any exception or error..<br><br><br>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 09:17:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8096#8096</guid>
  </item> 
  <item>
   <title>Deleting Record : You need to call stud.EntityAspect.Delete();...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8093#8093</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> 2073<br /><strong>Posted:</strong> 18-Aug-2010 at 2:25pm<br /><br />You need to call stud.EntityAspect.Delete(); rather than _mgr.RemoveEntity]]>
   </description>
   <pubDate>Wed, 18 Aug 2010 14:25:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8093#8093</guid>
  </item> 
  <item>
   <title>Deleting Record : Hi ThereNew in DevForce..I am...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8091#8091</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2073<br /><strong>Posted:</strong> 18-Aug-2010 at 12:46pm<br /><br />Hi There<br>New in DevForce..<br>I am try to deleting record from Data Grid but Could not get sucess yet.<br><br>I have simple datagrid where i am displaying record... and Added 4 button for CRUD operation<br>but my delete is not working..<br>Below the sample code<br><br>STUDENT stud = Students.Where(t =&gt; t.ID == Convert.ToDecimal(_id)).Single();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _mgr.RemoveEntity(stud);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _mgr.SaveChangesAsync();<br><br><br>Any Help would be highly appriciated..<br><br>Thanks in Advance<br>]]>
   </description>
   <pubDate>Wed, 18 Aug 2010 12:46:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2073&amp;PID=8091#8091</guid>
  </item> 
 </channel>
</rss>