Hi all,
I am new to nettiers and am loving it. I may be asking a question that is/has been handled elsewhere but I have been unable to find it.
I have a master database called ALIS with a generated data access layer that works great. I have a system where I need to have a laptop/pda that is only intermittently connected to the LAN on which the master database resides. What I need to do is when using the laptop I need to have access to a copy of the records in the master in disconnected mode - I thought that I could simply use a copy of the database on the laptop. When I connect I can sync the records programatically. I was thinking that the best method for implementation was to use two nettiers providers, one looking at the master and one looking at the local copy.
Given that the access to the data is via the DataRepository.<mytype>.GetAll...... how can I set up my configuration to use one or the other database? The database names and tables are the same, only the connection string will be different. The providers are stored in a collection, however is it only the default that ever gets used?
I am putting off the obvious solution of using another storage mechanism on the laptop such as XML because with reuse I only need to configure the different connection strings.
any help appreciated,
Alex
Latest test includes using multiple providers in the config, using different connection strings - then accessing them using:
DataRepository.Providers["SqlNetTiersProvider"].MyProvider.getAll() and DataRepository.Providers["SqlNetTiersProvider2"].MyProvider.getAll()