Have you seen the DDD sample: http://dddsample.sourceforge.net/ I have ported it to Sculptor. It is a really nice sample, since is based on something real, and...
Hi there, In my attempts to apply DDD lately I've been struggling with how to represent relationships to entities that are not part of an aggregate root. Do...
All, I recently came across a project that was using ddd and I seen value objects and data transfer objects (dtos) in the project. My question is this, what is...
immutability is a property they both tend to share but they have very different intents. Value objects are used to abstract a concept DTOs are used to transfer...
I would say that you are correct that they are in different aggregate roots. Instead of getting at them through traversal what if you were to introduce ...
to expand (or simplify?) what Greg said. Value objects usually contain smarts (logic). with the money example you could use a simple float type like Float...
Hi All, I am looking over a few tutorials by Jean-Paul Boodhoo. I'm not sure if everyone knows of him, but in his c#.net solution he has defined some projects...
Greg/All, Is it ok then to include business rules directly within value objects? For example, if (money < 0) { // don't allow it } or... are business rules to...
I think it is really not necessary to load all data if what you really need is the name. We don't have to return an domain object all the time even we are...
ultimately it depends on the complexity of the rules. then encapsulating the rules within the Money object itself is perfectly valid. You could also create a...
If the complexity of the rules were steep, would you personally place the business rules in the money object? or in a business rules object and pass that into...
the latter. here is one take on the model http://www.lostechies.com/blogs/mokhan/archive/2008/10/28/collecting-errors.aspx ... place the ... and pass ... ...
I think you can pretty easily distinguish between these two scenarios by looking at what the rule applies to. 1) If the rule applies to all instances of money...
All, Does anyone know of a small sample project that I can study that applies ddd? I understand that ddd is primarily for large scale applications, and really...
Hi Justin, There is a DDD sample application written in java available at: http://dddsample.sourceforge.net/ While DDD is very helpful in tackling large scale...
Hi Donnchadh, Thanks for the link! I cannot seem to download the file off source forge so I'll have to try again a bit later... I keep getting a 404. btw yes,...
All, Can someone please email me dddsample-1.0-src.zip as source forge will not let me download it. When I receive it from someone I'll reply to the list so I...
All, This simple blog post: http://weblogs.asp.net/bsimser/archive/2007/01/21/domain-driven-design-for-c-3-0.aspx offers a simple explanation on how to apply...
Hello, I have an Order Aggregate Root and a Stock Aggregate Root. When I want to retrieve an Order from the OrderRepository I want the orderlines and Stock...
this depends on the context of how stock and order relate. Stock may be it's own aggregate root, but in this context it appears stock is a child of the Order...
Yes Stock is a child of Order.OrderLine, but it has its own Respository. The reason its has its own respository and thus the reason for my original question is...
yes, this looks good. i would make one adjustment though. encapsulate the StockItem maybe something like _StockRepository.AdjustStockOutBasedOn(Order); or ...
I'm using DDD with NHibernate. I was wondering, should domain objects ever call into repository object methods? For example, to go grab some related data...
One thing I have struggled with in DDD is this concept of "aggregate" roots. The .NET CSLA framework has a similar concept and I struggled with it back when I...