DEV Community

fauxtix
fauxtix

Posted on

Injecting repositories in Unit Of Work

Hi,

Nice explanation.
You're using EF in your Unit of Work. What if someone want to use other ORM (Dapper, for instance)? Instead of injecting DataContext in the constructor, should we inject all the repository interfaces?

Regards,
Fausto

Top comments (0)