<?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 delete an row in database?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : how to delete an row in database?</description>
  <pubDate>Tue, 28 Apr 2026 05:01:20 -700</pubDate>
  <lastBuildDate>Wed, 08 Apr 2009 12:21:18 -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=1181</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 delete an row in database? : If your are using SQL Server and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4351#4351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=38" rel="nofollow">rclarke</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 08-Apr-2009 at 12:21pm<br /><br />If your are using SQL Server and you have control of the database design you might want to look into setting cascading deletes on the relationship definition in SQL Server. This way when you delete a row like an order item, SQL Server will delete the order details as well as the order item. This reduces the risk of orphaned rows but may not be the behavior you want in all cases.]]>
   </description>
   <pubDate>Wed, 08 Apr 2009 12:21:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4351#4351</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : In most cases, you will just know...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4349#4349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 08-Apr-2009 at 11:28am<br /><br />In most cases, you will just know how to access the other table.&nbsp; If you know about Orders, you will just know about OrderDetails.&nbsp; I am not trying to solve the general problem of deletion failing becauser of some unkown foreign key.]]>
   </description>
   <pubDate>Wed, 08 Apr 2009 11:28:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4349#4349</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : thx David, how can i refer to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4347#4347</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 07-Apr-2009 at 6:55pm<br /><br />thx David, how can i refer to other table with a devforce entity?]]>
   </description>
   <pubDate>Tue, 07 Apr 2009 18:55:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4347#4347</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : You are correct. You cannot delete...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4333#4333</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 06-Apr-2009 at 9:58pm<br /><br />You are correct.&nbsp; You cannot delete a row that has a relationship to another row.&nbsp; For example, you cannot delete an Order that has a bunch of OrderDetails.&nbsp; To delete the Order, delete all of the OrderDetails.&nbsp; Then delete the Order.]]>
   </description>
   <pubDate>Mon, 06 Apr 2009 21:58:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4333#4333</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : thx Jeff  that works :-) I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4312#4312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 05-Apr-2009 at 11:58pm<br /><br />thx Jeff<br><br>that works :-) I have another problem, where is here.<br><img src="uploads/454/deleteError.png" height="142" width="646" border="0" /><br><br>it think because that row refer to other table, so i couldn't delete it. but i can delete it if that table doesn't contain any forein key. so my question is, how can i deal with this issue? <br><br><br><br>]]>
   </description>
   <pubDate>Sun, 05 Apr 2009 23:58:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4312#4312</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : In DevForce Classic, you can call...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4234#4234</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=34" rel="nofollow">jeffdoolittle</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 01-Apr-2009 at 12:09pm<br /><br />In DevForce Classic, you can call myEntity.Delete() directly on an Entity.&nbsp; In DevForce EF, you call myEntity.EntityAspect.Delete().<br><br><br>--Jeff<br>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 12:09:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4234#4234</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : each entity doesn&amp;#039;t have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4233#4233</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 31-Mar-2009 at 11:38pm<br /><br />each entity doesn't have a delete method to destroy itself. I used EntityManager.RemoveEntity(Entity), but it didn't work. see the second last line of code in the picture.]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 23:38:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4233#4233</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : Removing an entity simply detaches...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4232#4232</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=34" rel="nofollow">jeffdoolittle</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 31-Mar-2009 at 10:09pm<br /><br />Removing an entity simply detaches it from the entity manager, leaving no pending changes to submit to the database.&nbsp; Instead, you need to call Delete on the entity itself and then save the changes in the entity manager that is managing that entity.<br><br>--Jeff<br>]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 22:09:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4232#4232</guid>
  </item> 
  <item>
   <title>how to delete an row in database? : can any one please tell which...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4231#4231</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=454" rel="nofollow">monkeyking</a><br /><strong>Subject:</strong> 1181<br /><strong>Posted:</strong> 31-Mar-2009 at 7:47pm<br /><br />can any one please tell which section of the developer guide can teach insert, delete, update the database? i have no problem with insert and update, but i can't delete the row from database after i insert it.<br><br>for example, i create a new row, assign values on it and insert it into the cache, save it. it works fine, database be able to be changed. but once i add a line of code "manager.loginUsers.EntityManager.RemoveEntyt(auser);" to delete that row, database doesn't have any changes.<br><img src="uploads/454/code.png" height="169" width="611" border="0" /><br><br><img src="uploads/454/result.png" height="139" width="286" border="0" /><br><br>am i on the right track to insert a row? and how can i delete a row? which section introduce these techniques<br><br>Regards<br>John<br>]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 19:47:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1181&amp;PID=4231#4231</guid>
  </item> 
 </channel>
</rss>