DEV Community

fauxtix
fauxtix

Posted on

1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs