Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Domain-driven design (DDD) is an approach to develop software for complex needs by connecting the implementation to an evolving model.
4
votes
2
answers
1k
views
Where to define the interfaces of the infrastructure in a clean architecture and DDD?
I have been reading about clean architecture and following Domain-Driven Design. In all the examples I have found, the interfaces of the repository are defined in the domain.
However, it is in the app …
-1
votes
2
answers
170
views
How to establish the relationship between two root entities from different bundled contexts ...
I have two bounded contexts, one to handle files and another to handled bills.
I have two projects, one for each bounded contexts.
Files can be any kind of file, an image, a document in pdf or any oth …
1
vote
0
answers
69
views
I have to have one application layer for all the projects or one application layer for each ...
I have a project with various bounded contexts. I have Purchases bounded context and product bounded context.
The two projects are developed by two diferent persons, so I am organazing the projects in …
1
vote
3
answers
2k
views
Is it needed a unit of work with DDD?
Reading about DDD, i have read that it is needed to have a repository per each aggregate entity.
For example, in an ordering system, I should have a repository for the order and another repository fo …
1
vote
0
answers
99
views
how to design the bounded contexts in DDD?
The context, or bounded contexts, it could be defined as a logical boundary of a domain where particular terms and rules apply consistently.
There are another definitions but more or less, this could …
0
votes
1
answer
154
views
How to design this case in DDD (domain-driven design)?
I have an employee that has to record the time when it starts to work and the time when it finishes.
This records can be associated with a proyect or not. Project could be null.
The proyect has an ID …
0
votes
3
answers
412
views
A very basic doubt about who should start an action in DDD (domain-driven design)
When I read about DDD, it is always said that it is about behaviors, said in another way, actions than can be performed.
My doubt is that who should start the actions.
Suppose I have a bounded context …
0
votes
2
answers
273
views
How to update a child entity of an aggregate root when I modify a property in another aggreg...
I have one bounded conext, offers, that has Offers as root aggregate and Items as child entity.
I have another bounded context, products, which has Products as root aggregate, Providers as another roo …
2
votes
2
answers
735
views
In DDD, is the root aggregate who has to expose the methods to tell if a child entity can be...
Thinking in the classic example of orders and lines.
I would like to use the domain classes in the presentation layer, so as to check if an action or a property is correct, the main code is in the dom …
0
votes
1
answer
115
views
When an entity has state, all the behavior depends on the state?
I was thinking in the common example orders, that can be in different statates. From create to pending to accept, accepted, sent... and so on.
But the order has data too, for example the client, the a …
0
votes
1
answer
165
views
How to get the information from another root entity to validate some operation?
I am trying to put in practice a small DDD example but I have some dubts.
In my example, I have an Order and a Status.
The Order can be this:
Order
{
long Id;
long IdStatus;
long IdBuyer;
…
2
votes
1
answer
306
views
Doubts how to design a card game in DDD
I was thinking how to design a simple cards game, like poker, in a DDD way, but I am not sure about some points.
Basically what I want is this, but I will try to simplify the problems that I have.
I …
2
votes
1
answer
3k
views
How to update many properties in DDD?
I have this order:
class Order
{
long Id;
string Concept;
string Comments;
//another properties
UpdateConcept(string paramConcept) {...}
UpdateComments(string paramComments) {.. …
-1
votes
1
answer
153
views
Why is it needed to use an event to notify the order was modified when I add a new order line?
I was reading some examples how to handle concurrency in DDD. One example is in this repository: https://github.com/kgrzybek/efcore-concurrency-handling/tree/master/src/OptimisticConcurrency/DDD.EF.Op …
1
vote
1
answer
678
views
In DDD, concurrency belongs to application layer?
In DDD, the model has to implement only the bussiness logic, and it has not the responsability about another things, like persistance.
So I was thinking that perhaps is in the application layer a good …