Re: Understanding Agrregates
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <CAN2bj2D0j-GK-0duANGsKdjL_rJk4Dya56a4VckwN0GJrJE5Dg@mail.gmail.com> |
Always depends on how you USE it. What do you load together every time? What single ID can you point to that says 'load that and everything associated with it'. That is your aggregate root. Sometimes the answer is it depends. When it depends you likely have several aggregate roots. Sometimes a single row is all you get. Remember this is just about the domain, not about reporting or post-processing at all. On Thu, Jul 10, 2014 at 10:26 AM, [email protected] [domaindrivendesign] <[email protected]> wrote: > > > If I have a Customer and a Product and they are related by a Account. > > Account than is a Aggregate? > > > I will have: > Entity\Customer > > Entity\Product > > Aggregate\Account > > > Or my Account still an Entity? > > >