DataReader from XML
Hey, guys,
Is there a way to return a DataReader from XML file? I am working on a data access layer, and would like to be able to return data either from database or from local xml files when user requests either dataset or DataReader. I can easily do that for the dataset, but not sure how to handle that with DataReader. This is done for testing purposes, so that by setting a flag in data-access layer, I can take database access out of the picture, but have the business and application layer be completely unaware of the change.
Any help is greatly appreciated.
|