Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BIZ Class Design
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01503016
Message ID:
01503044
Vues:
66
>
>Thank you very much. I have had very similar experience in working with biz object for two or more tables. And I thought I was missing some very basic concepts. And I also thought about creating some properties in the "primary" table BIZ object to "hook" BIZ objects for "child" or "secondary" tables. This way, my basic BIZ class can be used in a simple case and in some more complicated ones.

About the only thing I do for that is I have a "TransactionSave()" method on my bizobjs. You can pass in one or more bizobjs (and cursor names) and it will wrap all of them into a transaction and call the "Save" method on each of them. If any of them fail I rollback the transaction. Error messages get bubbled back up to the primary bizobj (whose TransactionSave you called).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform