Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Theoretical issue - how do you handle this?
Message
From
04/04/2005 20:53:32
Ken Dibble
Southern Tier Independence Center
Binghamton, New York, United States
 
 
To
04/04/2005 13:02:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01001223
Message ID:
01001399
Views:
15
>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).
Previous
Reply
Map
View

Click here to load this message in the networking platform