Reputation: 11
I'm using EF UnitOfWorkPattern, is it a nice way to use one repository in another? For example, I have repository A, this repository needs logic to retrieve data from repository B.
Upvotes: 0
Views: 184
Reputation: 4350
I'd say no. Repositories usually abstract away the CRUD operations, and nothing more. They are usually specific to one "entity" or "table".
If you need a functionality that goes "across repositories", then you are probably implementing some business logic, which is not part of the repository-uow layer.
Upvotes: 2