How to use EF Core 5 with DDD style projects - part 2

Опубликовано: 17 Июль 2026
на канале: dotnetFlix
4,517
98

This is episode 2 of 3 in our mini-series on using Entity Framework (EF) Core 5 in DDD style projects with Willem Meints. Often, you may find that the concepts that you want to apply in a DDD style project don't play nice with EF. Things like aggregates containing multiple entities and immutability can be a challenge. Willem will dive into some features that are added to EF Core 5 to overcome these challenges.

In part 1 (   • How to use EF Core 5 with DDD style projec...  ), Willem focuses on mapping entities to a relational database model.
In part 2, he addresses collections and handling multiple entities.
In part 3 (   • How to use EF Core 5 with DDD style projec...  ), he focuses on working with multiple aggregates in a domain.

You can find the code that Willem shows in his GitHub repo:
http://github.com/wmeints/efcore-ddd-...

00:00:10 - Introduction
00:00:59 - Recap of part 1
00:02:53 - Model ingredients of a Pie
00:07:52 - Configure EF to use an owned entity to handle the ingredients
00:11:21 - Add a migration that includes the ingredients
00:14:05 - Include ingredients when querying the database
00:17:50 - Update ingredients in the aggregate
00:18:32 - Wrap up

This video was made possible by Info Support (https://www.infosupport.com) and DotNed, the Dutch .NET Usergroup (https://www.dotned.nl).

--