﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Cascading Deletes and Updates</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 05:52:27 GMT</lastBuildDate><ttl>20</ttl><item><title>Cascading Deletes and Updates</title><link>http://forum.strataframe.net/FindPost30224.aspx</link><description>Hi all. &lt;br/&gt;&lt;br/&gt;Sorry, it's been a while since I've StrataFramed, so a bit rusty. Does SF support cascaded DELETEs/UPDATEs in parent-child relationships on maintenance forms without use of the DDT? If so, how is that controlled (i.e., how does one turn cascading on/off)? &lt;br/&gt;&lt;br/&gt;TIA</description><pubDate>Thu, 11 Aug 2011 16:41:41 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Cascading Deletes and Updates</title><link>http://forum.strataframe.net/FindPost30244.aspx</link><description>[quote][b]Alex Luyando (8/11/2011)[/b][hr]I see that the DDT allows for relating tables... does that actually persist the relationship back to the database or is the relationship kept at the "StrataFrame application" level? [/quote]&lt;br/&gt;Hi Alex,&lt;br/&gt;&lt;br/&gt;I understand, but anything you do in the DDT will basically persist in the database, not the SF Business Object, so if you don't have access to modify the database, then you will have to handle the cascade delete on your own.&amp;nbsp; There are many ways to do this based on the level of validation you may need to do before deleting, but if no validation is required, instead of looping each child record, create a SQL command to delete all record for a particular FK value and use the BO.ExecuteScalar() to get the number of records deleted and then delete the parent record.</description><pubDate>Thu, 11 Aug 2011 16:41:41 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Cascading Deletes and Updates</title><link>http://forum.strataframe.net/FindPost30243.aspx</link><description>Hi Edhy. &lt;br/&gt;&lt;br/&gt;Thanks... sorry... I didn't put the qualification in my posting that the database cannot be altered so that's not an option. I see that the DDT allows for relating tables... does that actually persist the relationship back to the database or is the relationship kept at the "StrataFrame application" level? </description><pubDate>Thu, 11 Aug 2011 16:18:12 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Cascading Deletes and Updates</title><link>http://forum.strataframe.net/FindPost30225.aspx</link><description>Hi Alex,&lt;br/&gt;&lt;br/&gt;Simply create a relationship in the database and set the RI cascade option there.</description><pubDate>Thu, 04 Aug 2011 18:36:28 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>