I have a question on implementing the repository pattern with my data model. I have searched online and looked into a lot of posts but I do not find any answer which clears my doubts. Basically our domain model goes like below we have a client object which has a lot of child objects and some child objects in turn will have a child objects and at any point of time these child objects without their parent objects are not needed and does not make any sense in the application.
client
--> client zip codes
--> client phone history
--> client medical history
--> client direct services
--> client direct service assessments
--> client direct service risk reductions
--> client housing
--> client housing landlord
and it goes like this. So from the above representation I have some aggregates and the root is the client object so I was thinking of creating a repository at the aggregate root level which is the client. My question is how do I handle the other aggregates. Can anyone please provide me some ideas on this.
Thanks, Ajay.