A cluster of associated objects that are treated as a unit for the purpose of data changes. External references are restricted to one member of the Aggregate, designated as the root. A set of consistency rules applies within the Aggregate's boundaries.
Questions tagged [aggregateroot]
441 questions
0
votes
1 answer
How to reference a leaf from a different root?
I have this design :
A product has many pricing grids, a grid has many pricing periods
Product
Id
Name
Grids[]
Name
Periods[]
Price
Start
End
Now I have special offers, when a seller create an offer (for instance -10%) he can choose…

remi bourgarel
- 9,231
- 4
- 40
- 73
0
votes
2 answers
DDD EF Repository
With following DDD and the repository pattern, is it possible to return the aggregate root object with its child data already included instead of using lazy loading?
e.g. I have a warehouse entity as the aggregate root and it has a child object…

user1180223
- 111
- 8
0
votes
1 answer
Paging among multiple aggregate root
I'm new to DDD so please executes me if some term/understanding are bit off. But please correct me and any advice are appreciated.
Let's say I'm doing a social job board site, and I've identified my aggregate roots: Candidates, Jobs, and Companies.…

Jeff Huang
- 23
- 2
-1
votes
3 answers
How to update grandchildren in an aggregate root
I Use EF Code First, and lazy loading.
My problem relates to how to efficiently update an entity in within a grandchild collection. First of all, i fear this makes a lot of calls in the db that is not really needed. But if my domain class is not to…

cfs
- 1,304
- 12
- 30
-1
votes
2 answers
Exposing only aggregate roots from a DBContext
I am a new bie to DDD. In our DDD project ,we have a requirement that our DBContext should only expose AggregateRoots.. Assuming that our DbContext is as shown below
public class ClassContext : DbContext
{
public DbSet Classes{ get;…

Sabarish Sathasivan
- 1,196
- 2
- 19
- 42
-2
votes
1 answer
Several Domain Drive Design questions
Lately I am trying to learn DDD and I am working on a test project. I have a few questions conserning my code. I just want to clarify that the meantions of Event in this code snippet refer to concerts, conferences, etc. It has no relation with…

Konstantin Konstantinov
- 127
- 1
- 1
- 7