This is episode 1 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, Willem focuses on mapping entities to a relational database model.
In part 2 ( • How to use EF Core 5 with DDD style p... ), he addresses collections and handling multiple entities.
In part 3 ( • How to use EF Core 5 with DDD style p... ), 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:02:21 - Sample case introduction
00:03:20 - Focus on .NET 5
00:03:59 - DDD concepts
00:06:19 - Setup the project structure and dependencies
00:08:22 - Create the first entity (Pie)
00:13:45 - Add a DBContext with an EntityTypeConfiguration
00:17:38 - Add a database migration
00:22:51 - Use EF owned types and C# 9 records to build valueobjects
00:30:14 - Wrap up
This video was made possible by Info Support (https://www.infosupport.com) and DotNed, the Dutch .NET Usergroup (https://www.dotned.nl).
--