↧
Comment by Álvaro García on A very basic doubt about who should start an...
I wanted to tell new Order.Create(paramIdEmployee), like you tell at last. I didn't write an space between new and Order.Create(oaranIdEmployee). So newOrder is not another class or entity.
View ArticleComment by Álvaro García on A very basic doubt about who should start an...
Thanks for clearing some questions. If I understand correctly, in you code is the client who create the instance of the employee and the application layer use it diretly. Wouldn't it better the...
View ArticleComment by Álvaro García on How to update a child entity of an aggregate root...
I am storing the price in the product the actual price, but I store the price in the offer too, that is the price that the product had in the moment to create the offer, so it can´t be changed never....
View ArticleComment by Álvaro García on Is it needed a unit of work with DDD?
Thanks for the answer. Perhaps I didn't exaplain well. In the example of person with address and cars. Yes, I have one aggregate and I have my Person repository for that, and this repository can...
View ArticleComment by Álvaro García on Is it needed a unit of work with DDD?
"DDD has the concept of separating out Aggregate Roots". Do you mean that one bounded context should to have only one AR?
View ArticleComment by Álvaro García on In the state pattern, what happens when the...
@DocBrown Thanks for that. It is a good idea to use ChatGPT for that, sometimes my english is not very good.
View ArticleComment by Álvaro García on Is it a good practice to allow null FKs?
Really cost is not calculated. It is a value that the user set in each case. Anyway, calculated or not, which is the difference? At the end it is a value with the total cost. For example for a product,...
View ArticleComment by Álvaro García on Is it a good practice to allow null FKs?
Thanks for your detailed answer. But then, in TPT, if I misunderstood, if I want to know the total cost, I have to do two queries, one to know the total costs of the products and another to know the...
View ArticleComment by Álvaro García on How to establish the relationship between two...
When I talk about bounded context, I mean that I have a system (a bounded context) to manage files (create, update, delete and any other actions that I could do about files). And when I talk about...
View ArticleComment by Álvaro García on How to establish the relationship between two...
@RikD Bill doesn't need the file to acomplish any task, just I want to stablish a relationship between a bill and a file. But the bill doesn't need a file to pass from created to paid or some other...
View ArticleComment by Álvaro García on Where to define the interfaces of the...
Thanks for the detail answer. But to clear when I tell that the domain should be agnostic about persistence, I wanted to mean that the domain shouldn't know if the data is persisted or not. If the...
View ArticleComment by Álvaro García on MVVM Commands - one command for everything or...
I am agree with this idea, and I am thinking how to implement it, but i don't find the best way to do it. Could you show how could I implement it? Thanks so much.
View ArticleIn 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...
View ArticleDoubt 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...
View Articleupdate state with the rest of properties or to have an action only to update...
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...
View ArticleOne 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...
View ArticleHow 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:...
View ArticleWhy is the product of the order item a reference to the ID of the product and...
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 was...
View ArticleIs 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...
View Articlein DDD, when I don't want navigation property from child to parent, is it...
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 have read that if it is possible,...
View Article
More Pages to Explore .....