Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Objects - General Questions
Message
De
03/05/2001 10:58:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Business Objects - General Questions
Divers
Thread ID:
00503052
Message ID:
00503052
Vues:
67
I have a general questions about using Business Objects:

What is the best or proper way to handle a parent/child scenario? What I mean is would the parent and the child each have a Business Object to manage each of them?

Consider the typical Invoices and LineItems type scenario. Would I have 1 Invoice Business Object and 1 LineItems Business Object? I know some would say that each LineItem should have a Business Object, but I’m not sure that is the best way either.

So if I want to delete an Invoice, I would ask the Invoice Business Object to Delete() and I would assume that would also ask the LineItems Business Object to Delete() all if it’s lines, right?

But what if I want to just delete 1 LineItem? Do I just ask the LineItem Business Object to Delete()?

Thanks for any advice, I’m floundering at this point as to how to do this stuff right.

Ed Lennon
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform