Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Theoretical issue - how do you handle this?
Message
De
04/04/2005 20:53:32
Ken Dibble
Southern Tier Independence Center
Binghamton, New York, États-Unis
 
 
À
04/04/2005 13:02:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01001223
Message ID:
01001399
Vues:
16
>Of course you could create a separate 'logical' data tier in code to handle this type of thing. You could create your own data objects and place your appropriate code there depending on the backend type. Probably some would do that. It adds another level to maintain though but would work as well.

This is what my framework does. I have a Data Manager baseclass separate from my Business Object baseclass. Data Managers are subclassed to work with specific groupings of parent/child tables and the RI code is included in these subclasses.

I went with this strategy not only in order to be able to use different back ends, but also on the assumption that I might someday want to write my own server, which would use these data classes internally and pass data to client software that encompasses the business objects (and GUI).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform