R
Randall Howe
Hello,
I need advice on how to design flexible data handling for
an app that meets the following general installation
options:
1. data on local machine, single user, probably using
Access or FoxPro
2. data on network, multi-user, client server, SQL Server
or Oracle
3. data on web service using SQL Server and IIS
The option chosen must be transparent to the client.
Currently my design is based on separating the client app
from the data provider. The client instantiates a class
from a separate dll that handles communication between the client and the
data - currently SQL Server. I figured
that I would later expand data handling to other data
sources through subclassing. While I haven't since ruled
this out, I'm guessing that the web service version will
throw a wrench into this approach.
The question is how to provide elegant and transparent
switching between data handling code for a flexible and
growing list of data providers.
I'm tempted to implement an intermediate "generic" wrapper class containing
all the methods needed by the client. The wrapper class would then farm out
the actual work to provider-specific classes based on the provider in use.
Unfortunately, I have yet to work with web services, so
anything I come up with at this point would be a guess.
Any advice would be appreciated.
Randy
I need advice on how to design flexible data handling for
an app that meets the following general installation
options:
1. data on local machine, single user, probably using
Access or FoxPro
2. data on network, multi-user, client server, SQL Server
or Oracle
3. data on web service using SQL Server and IIS
The option chosen must be transparent to the client.
Currently my design is based on separating the client app
from the data provider. The client instantiates a class
from a separate dll that handles communication between the client and the
data - currently SQL Server. I figured
that I would later expand data handling to other data
sources through subclassing. While I haven't since ruled
this out, I'm guessing that the web service version will
throw a wrench into this approach.
The question is how to provide elegant and transparent
switching between data handling code for a flexible and
growing list of data providers.
I'm tempted to implement an intermediate "generic" wrapper class containing
all the methods needed by the client. The wrapper class would then farm out
the actual work to provider-specific classes based on the provider in use.
Unfortunately, I have yet to work with web services, so
anything I come up with at this point would be a guess.
Any advice would be appreciated.
Randy