Value objects are immutable entities in domain-driven design that lack identity and are recognized by their values rather than unique identifiers. The article demonstrates implementing value objects in ASP.NET Core through a practical Address example, covering the creation of a base ValueObject class with equality comparison methods, proper Entity Framework Core configuration for non-entity objects, and the benefits of using value objects for domain expressiveness, immutability, and separation of concerns in software architecture.

12m read timeFrom telerik.com
Post cover image
Table of contents
DDD in a NutshellUnderstanding the Concept of Value ObjectsWhy Use Value Objects?When Not to Use Value Objects?Creating a Value Object in ASP.NET CoreDealing with Value Objects in EF CoreConclusion

Sort: