EF Core, DDD, and Clean Architecture - Mapping Aggregates to Relational Databases

Опубликовано: 05 Ноябрь 2024
на канале: Amichai Mantinband
86,784
2.1k

Note: EF Core 8 made some changes that may effect your implementation if you’re following along: https://github.com/dotnet/efcore/pull...

We will start by discussing the differences between using Entity Framework Core on its own and using it in combination with DDD principles, including the importance of persistence ignorance and enforcing DDD principles.

Next, we will cover three steps for mapping an aggregate to its corresponding tables in a relational database using EF Core. We will then use EF Core's Fluent API and configuration files to map a complex aggregate to its database tables.

Finally, we will create an SQL Server in a docker container, use the EF Core CLI tool to manage migrations and apply our migrations, and use VSCode to visually explore the database.

Get the source code:   / amantinband  .

Link to the entire playlist:    • ASP.NET 6 REST API Following CLEAN AR...  

Connect with me on 'em socials:
Twitter:   / amantinband  
LinkedIn:   / amantinband  
GitHub: https://github.com/amantinband

#dotnet #csharp #efcore #ddd #amantinband