Skip to main content

New answers tagged

2 votes

How to Model Parent-Child relationships outside of Aggregates

In DDD if your relationship crosses an Aggregate Root boundary then its OK to have orphaned children. The whole point of an aggregate root is to keep the relationship consistency. If you can't have ...
Ewan's user avatar
  • 78.6k
2 votes

Why are there no Domain Commands in DDD?

Old question, I know, hear my take on it. I know that in DDD there is no such thing as Command in domain layer. But from my point of view it should be. E.g. if you watch this talk, Jérémie Chassaing ...
Josef Bodnar's user avatar
1 vote

How to share transaction across multiple repositories in DDD?

How do we solve this problem? You're going to have to relax some of the constraints that are getting in your way. When a product is created/changed, we have to add a TimeLineItem to the Timeline ...
VoiceOfUnreason's user avatar
0 votes

Modeling value object when fields' existence depends on state of other fields

Your question is somewhat hard to understand for me, since you talk about GPAs without explaining what that precisely means (I guess "grade point average"), then using the term "GPA&...
Doc Brown's user avatar
  • 212k
1 vote

Modeling value object when fields' existence depends on state of other fields

Yes, but it's usually not worth it. You need to implement operators for your class. ie add, subtract, isequal, gt, lt etc https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/...
Ewan's user avatar
  • 78.6k
3 votes
Accepted

Aggregate design for a fuel tank with deliveries and fill level readings

I wonder about aggregate design regarding a fuel tank entity. OK, so one of the things that you have to have clear in your head, is where the "book of record" lies. If you are dealing with ...
VoiceOfUnreason's user avatar

Top 50 recent answers are included