Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One-to-Many relationship in class
Message
 
À
20/06/2002 07:04:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00670520
Message ID:
00672310
Vues:
15
you have a businness object with SQL View for a data access, the bussiness object in the relation need see the father object and read the ID for run a view too. remember are you using SQL Backend and the business object are an abstraction way for change the Backend anytime.

you need construct a business object with the filter for the datasource and add methods for work with another business object too.

this is the way for using views with Business objects (i think)

regards

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform