Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cascading deletes
Message
 
À
02/05/2000 21:42:15
Susan Severson
Forward Solutions, Inc.
Chaska, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00365431
Message ID:
00365595
Vues:
19
Sue,

>I am struggling with how to accomplish cascading deletes with the framework. If the user chooses to delete a parent record, and there are child bizobjs on the form, how to I tell the framework to delete the related child records?>

There are a few ways to handle this. By default, the Framework assumes that you have set up cascading deletes in your database to handle this situation. The benefit from this approach is that the proper deletion occurs if you delete a record directly from the database (not via a business object). However, if you prefer, you can have your parent business object send a delete message to each child.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform