mardi 27 mars 2018

C# best pattern to change target respository implementation through configuration

I am not very experienced in design patterns. I am creating an webapi application using asp.net core 2.0. I want to implement a design pattern so that i can configure whether to use database repository to save to sql database or file repository for saving to file or i will use messaging service to send as a message to a queue.

Can anyone suggest me what is the best pattern to achieve this?

Thanks

Aucun commentaire:

Enregistrer un commentaire