Having a repository dependent on another repository
Repository should have single responsibility – persist one kind of entity. E.g. employees. If you have to delete some associated records from other repository, it looks like business logic. E.g. When employee is fired we should remove his work log And usual place for business logic is a domain services. This service will have both … Read more