Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Objects - General Questions
Message
From
03/05/2001 10:58:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Business Objects - General Questions
Miscellaneous
Thread ID:
00503052
Message ID:
00503052
Views:
68
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
Map
View

Click here to load this message in the networking platform