aggregateroot Questions
1
Lots of examples like order and order lines makes sense, like:
Order is an AR that contains OrderLines
Customer is an AR that contains Orders.
Question is, what is the AR that contains Customer?
...
Creon asked 22/12, 2015 at 20:3
1
First of all, let me state that I am new to Command Query Responsibility Segregation and Event Sourcing (Message-Drive Architecture), but I'm already seeing some significant design benefits. Howeve...
Hooper asked 14/12, 2015 at 0:0
3
I am using CqrsLite for a CQRS-style project. The Save method of the concrete Repository implementation looks like so (with irrelevant lines omitted).
public void Save<T>(T aggregate, int? ...
Cato asked 6/11, 2015 at 14:56
2
Solved
Consider an aggregate with many properties. For example UserGroup. If I want to publish a UserGroupCreatedEvent I can do 2 things:
duplicate the properties from the just created UserGroup to
User...
Histrionic asked 28/8, 2015 at 14:16
2
Solved
In Domain-driven design if I want to use a repository I need to have an aggregate for it - as I understand.
So I have a User, that has id, login, email, and password. A user is a domain Entity wi...
Marenmarena asked 22/2, 2015 at 12:11
1
Solved
In "Domain Driven Design: Tackling Complexity in the Heart of Software", Evans defines
An Aggregate is a cluster of associated objects that we treat as a unit for the purpose of data changes.
...
Necrophilism asked 29/1, 2015 at 18:57
1
Solved
If I have a payment value object can it be shared by two different aggregate roots? or should I duplicate it?
Both options feel wrong!
Portal asked 27/11, 2014 at 2:3
1
I am currently developing a DDD application and am confused about how to handle a scenario where it seems as if I have to access an aggregate root from another aggregate root. Here is an overview o...
Devisal asked 7/11, 2014 at 21:32
2
I need to know about how to use shared value objects in DDD Eg?
If i have two aggregates roots called Registration and Admission, both this aggregates consuming a value object called Address. even...
Ephemeris asked 3/7, 2014 at 7:21
2
Solved
Take the domain proposed in Effective Aggregate Design of a Product which has multiple Releases. In this article, Vaughn arrives at the conclusion that both the Product and Release should each be t...
Blondie asked 28/7, 2014 at 18:0
1
I am currently working through the domain driven design book by Eric Evans, and there is one concept that I am having trouble with...
According to the book, all aggregates should have an aggregate...
Imray asked 22/7, 2014 at 6:2
2
Solved
We are using event sourcing and construct aggregates from stream of events.
I have 2 aggregates - A1 and A2. A1 is used as a template in order to create A2.
The size of A1 can be pretty big.
The f...
Mafalda asked 8/6, 2012 at 19:20
2
Solved
In DDD the Aggregate should represent the transactional boundary. A transaction that requires the involvement of more than one aggregate is often a sign that either the model should be refined, or ...
Bare asked 5/5, 2014 at 1:22
3
Let's consider the typical Order and OrderItem example. Assuming that OrderItem is part of the Order Aggregate, it an only be added via Order. So, to add a new OrderItem to an Order, we have to loa...
Soredium asked 13/4, 2010 at 7:41
2
Solved
Let's say I have two bounded contexts, the Shipping Context and the Billing Context. Each of these contexts need to know about the customer.
At a data level, the customer is represented by a Custo...
Stereogram asked 6/2, 2014 at 7:3
2
Solved
How can we tell Entity Framework about Aggregates?
when saving an aggregate, save entities within the aggregate
when deleting an aggregate, delete entities within the aggregate
raise a concurrenc...
Moray asked 15/6, 2012 at 15:23
1
What are aggregates and how are they used in CQRS (Command-Query-Responsibility-Segregation) and ES (Event-Sourcing)? I'm new to this kind of architecture, and I'd be really happy if someone could ...
Equilibrist asked 5/12, 2013 at 5:21
3
Solved
I have an aggregate root Products which contains a list of entities Selection, which in turn contains a list of entities called Features.
The aggregate root Product has an identity of just name
T...
Zonked asked 24/11, 2013 at 20:12
2
Solved
I'm having my first attempt at DDD and I'm running into a problem with aggregate design.
My application contains 3 Entities; Graph, Node, Link. Each of these entities has a name property which can...
Mombasa asked 31/7, 2013 at 10:27
3
Solved
I am building an application using Domain Driven Design that is using Entity Framework.
My goal is to allow my domain models (that get persisted with EF) contain some logic within them.
Out of th...
Ellinger asked 24/7, 2013 at 19:35
1
I'm facing a key design question related to how to attach custom fields to entities in my system. The entities are represented in C# and persisted in RavenDB. We are roughly following tenants of Do...
Walburga asked 12/7, 2013 at 20:17
1
I'm having some difficulty figuring out how the Aggregate Root will track changes on child entities.
Let say I have an aggregate:
Order (root)
OrderLineItem
With the Order class being the a...
Sometime asked 20/5, 2013 at 19:39
4
Solved
Overall design: I have an aggregate class C that contains N member variables of type M_i, i = 1 ... N that each have a common write-only update() interface as well as class-specific read-only acces...
Accelerometer asked 18/2, 2013 at 9:6
2
Solved
If you follow the repository pattern they... say to create a repository for each root aggregate entity.
That means when I have this model:
customer has orders
order has products
product has suppl...
Misdoubt asked 5/2, 2013 at 21:12
2
Solved
I have a system where a user answers question in a form. I have objects representing this model but I am not quite sure how to organize these objects in terms of DDD.
Form (has its own list of) ...
Barta asked 30/11, 2012 at 14:50
© 2022 - 2024 — McMap. All rights reserved.