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.
0
votes
1
answer
64
views
One provider for all entities or different according to needs?
I am trying to design in DDD the management of orders to a privider.
The order has to have the information of the provider to which i will order the items. Later I will add lines to the order. This li …
2
votes
1
answer
283
views
How to know the invoices of a project?
I have a project in which I have to manage projects, invoices and orders to providers. So I think that I can define three bounded context.
First bounded context: Projects.
Second bounded context: Invo …
0
votes
0
answers
277
views
in DDD, when I don't want navigation property from child to parent, is it still needed at le...
I have this:
Class Order
{
long ID;
...
}
Class Item
{
long Id;
IdProduct;
decimal Amount;
...
}
Perhaps I misunderstood what means bidirectional relation in DDD, because I h …
-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 …
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;
…
0
votes
2
answers
177
views
update state with the rest of properties or to have an action only to update the state?
I am thinking in a common orders and order lines example. The order has a state and depends on the state, I can do some actions or not.
I guess that a good option for that it is to use the state patte …
0
votes
2
answers
551
views
Is this a good alternative to state pattern?
I was trying to use the state pattern in a DDD aggregate, but I was thinking in the following alternative.
In sumary, the state pattern controls what actions can be done in each state. This makes to c …
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
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 …
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
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 …
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
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 …
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 …
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 …