From the course: Expert Domain-Driven Design (DDD) Implementation in .NET

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Refactoring the solution to add a shared kernel mapping

Refactoring the solution to add a shared kernel mapping - .NET Tutorial

From the course: Expert Domain-Driven Design (DDD) Implementation in .NET

Refactoring the solution to add a shared kernel mapping

- In this chapter, we're going to talk about aggregates, which are a transactional unit when we have multiple entities related to each other and need consistency through the aggregate root. To expedite this process, I've already added these three projects, API, Domain and Domain.Tests, for the clinic bounded context. Clinic is the bounded context where we'll find information on consultations, patients and drugs. Now, you can see that I created the consultation class. This class represents consultations within the Wisdom Pet Medicine Clinic, and we're going to add properties and behavior to reflect the ubiquitous language provided by the domain experts at Wisdom Pet Medicine. The consultation class will be our aggregate root. An aggregate root is the main entity within a group of related objects. Its main goal is to maintain the integrity and consistency of the entire aggregate. Okay, now, we already have the entity class here in the Management.Domain project. However, I don't want to…

Contents