Switch between data sourcesSwitch between data sources
Old forum URL: forums.lhotka.net/forums/t/7119.aspx
poulin_julien posted on Wednesday, June 17, 2009
Hi, I just begun writing an application and one of the requirements is that the application should be able to switch the data source from a SqlServer Database and XML files and vice versa?
What is the best way to build my classes in regards to this? Specificaly inside the DataPortal_XYZ methods...
Thanks in advancersbaker0 replied on Thursday, June 18, 2009
There are several possible ways to do this, but I'd suggest storing the data source configuration in a .config file.
CSLA uses the app.config file to configure the data portal, so you might look at this for examples. Copyright (c) Marimer LLC