could domain models be aware of repositories?
问题 May be for some domain logic implementation entities need access to repo for update/delete of self or any related entity. Does this sound right ?? 回答1: No, it doesn't, at least for the question tagged with "domain-driven-design" tag. Definitely, Active Record pattern has a right to live in some systems and some people find strong coupling useful, but in DDD the proposed way is to use repositories explicitly: Evans DDD, p.152 : For each type of object that needs global access, create an object