Jonas  Abbott

Jonas Abbott

  • NA
  • 3
  • 1.1k

DI for repository while using multiple databases

Oct 6 2014 12:21 AM
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)