1
Answer

DI for repository while using multiple databases

Jonas  Abbott

Jonas Abbott

9y
771
1
In an application which uses multiple databases, should I create DBContext object for each database and inject all of them to the repository or should I create a generic DB Context and create repository object based on the database I want to use in different functions?


Answers (1)