Domain Driven Design Value Object C
In this interpretation entities and value objects are essentially function less data holders only and the design concerns itself with what properties these hold and what relation they have between each other.
Domain driven design value object c. Focus on the core domain and domain logic. Check out his book on the subject. Some interpretations of domain driven design do advocate data modeling and i think this is what your question is about.
As someone who uses many domain driven design patterns in my net code i ve long wanted to have built in immutable value objects in c. Value object implementation in c. The term was coined by eric evans.
S arp architecture a pragmatic c example not as pure a ddd approach perhaps due to its lack of a real domain problem but still a nice clean approach. A value object is an immutable type that is distinguishable only by the state of its properties. If the primitive property is acting primarily as a data transfer object don t turn it into a value object.
You can t change their state. Dddps tim mccarthy s sample c app for his book net domain driven design with c. Value objects have a few characteristics.
When going for domain driven design these are the element of domain driven design. Collaboration between technical and domain experts. Has no concept of an identity two different instances of a value object with the same values are considered equal.
In the end do what makes sense and keep the code simple and maintainable. Two important building blocks when we talk about code are entities and value objects. An object that can be identified uniquely or by its identifier.