On the issue of "adding an order item needs to update the product inventory", well, it probably doesn't. As long as you know you have enough inventory for the...
That was my thought when I browsed this question ... having written a number of ecommerce systems, the ordering and inventory parts have rarely had muchto do...
Your model is certainly becoming anemic. Your commands are fine, though I'm not sure why you made them commands when, in your current implementation, they...
Hi, I'm Richard, i'm init in this idea, and i don't know how i going show the reports for users. How the Application layer shows the objects for the...
Artur makes a very good point. Don't try by all means to make all methods fit into your entity. Keep it simple and only do as much as necessary, but feel free...
... Technically, the Service Layer sits on top of the Domain Layer, and your entities should exist in the Domain Layer. I think, though, that your question is...
As always, it depends. You can indeed allow the presentation layer to use the repository directly, just as you can allow the presentation layer to use a...
Giovanni, I absolutely agree with you - mapping as a layer of indirection brings additional complexity to the solution and therefore should not be blindly...
... I'd certainly be keen for you to tell me what they are :-) ... To me too, but I think it would be less complicated than using a DB. ... With in-memory...
Just see this discussion, IMHO I think the problem of Anemic Object is that there are multiple services class access directly to the data model ( or database...
... Right, what we have done is to simply say that ALL functionality in an object comes from aspects, meaning, in your example Person and StoreRoom would have...
All, I have to present on the basics of DDD this Monday. I was jotting down some notes and was wanting to confirm my thoughts so if others can help me focus on...
Short answers about 5: Repositories doesn't return DTO, they return domain objects. Any needed DTO, I guess, is usually generated from service, returning to UI...
Hi Casey, I see your point. In current system there is a business requirement that I can only add product to Order if it is available in stock. I was trying...
Hi Udi, With this approach - the Ordering context knows about Inventory context and vica versa. How would it work if I use a 3rd party inventory management...
Thank you for all the great responses. One of the responses made me think that maybe I was just delegating Order Processing from the wrong place. I was doing...
Indeed if an item must be in stock then a Reserve method would be best, but in DDD terms I would have this as a method on the Inventory domain, which would...
Just one thought ... You have All those actions on Order ... An Order is the final item in an ecommerce system ... Until confirmation, no Order exists ...a ...
Thanks for the feedback. A few questions.... ... Their interfaces are in many cases, implementations are something that most people keep seperate. Q) - Where...
thanks Angel for the feedback! A few questions... Short answers about 5: Repositories doesn't return DTO, they return domain objects. Any needed DTO, I guess,...
... repository itself? ... The repository is a class and in most cases it would have the code to talk to the data-store directly, normally it would support one...
Rob Conery's MVC Storefront how-to videos <http://blog.wekeroad.com/mvc-storefront/> should answer most of these questions at a high-level. They don't...
Hi people! Hmmm.... Q1 and Q2: it depends of what are you using in infrastructure. If you use NHibernate/Hibernate, for example, it could be implemented in...
Hi Justin ... 1. UI 2. Application 3. Domain 4. Infrastructure << There might not be an application layer. ... That is good practise. ... Not necessarily. I...
Thanks Angel for all the information! Do you return domain layer objects to the UI layer and map the domain layer object fields to controls on a form? Or do...
Thanks Pete for the clarification... the fog is starting to lift! I program in .NET. I wanted to ask you the same thing I asked Angel, that is... Do you return...
... objects to the UI layer and map the domain layer object fields to controls on a form? Or do you translate the domain layer object to a DTO and use the DTO...
... In some apps, yes, in some no. In a WinForm app I used domain objects directly in the GUI via databinding. In an app I am helping to write at the moment...