lundi 27 juin 2016

C# Repository Pattern with Multiple/Different Data Sources

In my application, I have to create a repository which will give me the data objects. Now based on the application mode(user input) I have to get the data from file or from db. So it involves two data sources inside the repository.

What would be the best approach for handling multiple data sources in a repository ?

Thanks!!!

Aucun commentaire:

Enregistrer un commentaire