Is injecting repository in aggregate root / entity considered bad design?
问题 I am trying to learn about details of domain driven design and i came to this question. I found many examples with: Defining repository interface within the domain Defining repository implementation somewhere else Inject repository interface into aggregate root On the other hand, there are examples that strictly go against it and do all repository related stuff from service. I cannot find authoritive answer and explanation: is it considered a bad practice and if so - why? 回答1: I cannot find