Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One-to-Many relationship in class
Message
De
20/06/2002 07:04:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
One-to-Many relationship in class
Divers
Thread ID:
00670520
Message ID:
00670520
Vues:
46
Hi,
I have my datasource and business class. Every Business class will create an instance of datasource class.

I have question that, if I have sales business class. It will access sales and sales details table. Should I create an instance of datasource class, and an instance of sales datasource? Or any other ideas?

If I wan to delete a cashier, the sales transaction done by the cashier should not be deleted. I know I can set integrity relationship for cascade delete or etc. But how about both of these tables are from different database? Therefore, I think I should implement the cascade delete in class either. WHere should I place this codes, deletestaff method or.. ? How do you do?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform