<?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 : Cascading Delete Trouble</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Cascading Delete Trouble</description>
  <pubDate>Sun, 12 Apr 2026 03:50:20 -700</pubDate>
  <lastBuildDate>Thu, 02 Aug 2007 03:33:56 -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=339</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>Cascading Delete Trouble : I got it sorted guys The problem...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=848#848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=69" rel="nofollow">Darren</a><br /><strong>Subject:</strong> 339<br /><strong>Posted:</strong> 02-Aug-2007 at 3:33am<br /><br /><P>I got it sorted guys</P><DIV>The problem lay in my database schema , there was a relationship problem there.</DIV><DIV>&nbsp;</DIV><DIV>I have a Matrix table linked to the contacts table.</DIV><DIV>The matrix holds 2 fields contactid and accountid</DIV><DIV>&nbsp;</DIV><DIV>The contact table should have been the Parent and the Matrix the child , but i had it reversed</DIV><DIV>&nbsp;</DIV><DIV>cheers </DIV>]]>
   </description>
   <pubDate>Thu, 02 Aug 2007 03:33:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=848#848</guid>
  </item> 
  <item>
   <title>Cascading Delete Trouble : From looking at this (and without...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=841#841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=63" rel="nofollow">TrevLeyb</a><br /><strong>Subject:</strong> 339<br /><strong>Posted:</strong> 01-Aug-2007 at 4:25pm<br /><br /><P>From looking at this (and without seeing what Me.Contact actually is), I would suggest that Me.Contact is an ENTITY and not an ENTITYLIST. </P><DIV>So you are trying to cast a ENTITY (singular) to a ENTITYLIST (plural) whcih would give the error you are reporting. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 01 Aug 2007 16:25:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=841#841</guid>
  </item> 
  <item>
   <title>Cascading Delete Trouble : new EntityList&amp;lt;T&amp;gt; only has...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=840#840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=72" rel="nofollow">naveen.menon</a><br /><strong>Subject:</strong> 339<br /><strong>Posted:</strong> 01-Aug-2007 at 3:29pm<br /><br /><P>new EntityList&lt;T&gt; only has 2 overloads.</P><DIV>1) new EntityList&lt;T&gt;()</DIV><DIV>2) new EntityList&lt;T&gt;(IEnumerable pCollection)</DIV><DIV>&nbsp;</DIV><DIV>In your code, Me.Contact seems erroneous. Is that the line, your code breaks at?</DIV>]]>
   </description>
   <pubDate>Wed, 01 Aug 2007 15:29:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=840#840</guid>
  </item> 
  <item>
   <title>Cascading Delete Trouble : I keep getting this error in my...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=798#798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=69" rel="nofollow">Darren</a><br /><strong>Subject:</strong> 339<br /><strong>Posted:</strong> 30-Jul-2007 at 7:46am<br /><br />I keep getting this error in my developer class when i go to delete a contact.<DIV><DIV></DIV><img src="http://www.ideablade.com/forum/uploads/20070730_104349_cas_del.JPG" height="247" width="424" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>Me.Contact being the relation property between the parent and the child class.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>here is the code:</DIV><DIV>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>Public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Function</FONT><FONT size=2> DeleteGraph() </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Integer</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> numberOfItemsDeleted </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Integer</FONT><FONT size=2> = 0</P><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> contactDetails </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> EntityList(</FONT><FONT color=#0000ff size=2>Of</FONT><FONT size=2> Model.Contact) = </FONT><FONT color=#0000ff size=2>New</FONT><FONT size=2> EntityList(</FONT><FONT color=#0000ff size=2>Of</FONT><FONT size=2> Model.Contact)(</FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.Contact)</P><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> contactDetailsCount </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Integer</FONT><FONT size=2> = contactDetails.Count</P><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> counter </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Integer</FONT><FONT size=2> = 0</P><P></FONT><FONT color=#0000ff size=2>Do</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>While</FONT><FONT size=2> counter &lt; contactDetailsCount</P><P>contactDetails(0).Delete()</P><P>counter += 1</P><P></FONT><FONT color=#0000ff size=2>Loop</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>Me</FONT><FONT size=2>.Delete()</P><P></FONT><FONT color=#0000ff size=2>Return</FONT><FONT size=2> (contactDetailsCount + 1)</P><P></FONT><FONT color=#0000ff size=2>End</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>Function</P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Mon, 30 Jul 2007 07:46:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=339&amp;PID=798#798</guid>
  </item> 
 </channel>
</rss>