DTO vs Value Objects

Posted on by

Attributes of Value Objects No identity. A corollary of value objects’ identity-less nature is, obviously, not having an Id property. Unlike entities, value objects should be compared by value, not by identity field. Immutability. As any value object can be replaced by another value object with the same property set, it’s a good idea to make…