C#C
C#2y ago
16 replies
Sebastian

Repo pattern - is it okay to call one repo from multiple services?

Hi,
pretty much the title summarizes it all.

In one code base I am refactoring I am seeing a lot of calling from multiple services classes to one repository - most likely to bypass circular dependencies.

Is it a good practice? Why yes? Why not?

I usually try to keep calls between services to make sure business logic is checked at all times.
Was this page helpful?