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 …
4
votes
3
answers
2k
views
In DDD: is the domain who decides when to persist the data?
I am reading about DDD and in the examples it is common to see how the domain gets the data from database, do the business logic and then persist the data. For example to update a field:
class MyDomai …
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 …
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 …
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
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
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 …
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
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 …
1
vote
3
answers
636
views
Why is the product of the order item a reference to the ID of the product and not a value ob...
I am seeing this example in the Microsoft documentation:
Here we can see how OrderItem has a reference to the ID of the product, it is the first option that sure people uses to think, me too.
But I w …
0
votes
1
answer
2k
views
Doubt about DDD, entity core and backing field
I was reading the documentation about how to use Entity Core in a DDD way. This is the documentation.
It is said that I can configure EF to can map an internal private field to a private field, the ba …
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 …
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 …
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;
…