General information
Category:
Object Oriented Programming
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only