Information générale
Catégorie:
Programmation Orientée Object
Titre:
Business Objects - General Questions
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement