Tag DDD
Modeling Relationships in a DDD Way
Let’s talk about modeling of relationships, including the dreaded many-to-many relationships, in a DDD way.
Encapsulating EF Core Usage: New Pluralsight course
My new Pluralsight course about encapsulating EF Core usage went live.
Collections and Primitive Obsession
Does the primitive obsession anti-pattern apply to collections? In other words, should you introduce a custom class for a collection?
Database and Always-Valid Domain Model
Today, we’ll talk about an important question: how does the application database fit into the concept of Always-Valid Domain Model?
In other words, is the database part of the always-valid boundary or should you consider it an external system and validate all data coming from it?
Specification Pattern vs Always-Valid Domain Model
There’s an interesting controversy between two DDD topics: the Specification pattern and the Always-Valid domain model.
Nulls in Value Objects
Today, we’ll discuss an interesting use case of handling nulls in value objects. Should you put null
inside the value objects themselves or decorate those value objects using the nullable reference type notation (?
or Maybe
)?
Validation and DDD: New online course
My new Pluralsight course about Validation and DDD went live.
Always-Valid Domain Model
I was re-reading some old articles about always-valid domain models, including the response to it from Greg Young. It may seem strange to write a response to an 11 years old article, but...
How to handle unique constraint violations
Today, we’ll discuss how to best handle unique constraint violations.
C# 9 Records as DDD Value Objects
Today, we’ll talk about the new C# 9 feature, Records, and whether or not they can be used as DDD value objects.