Get the source code for this video for FREE → the-dotnet-weekly.ck.page/ric...
☄️ Master the Modular Monolith Architecture: bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: / milanjovanovic
Clean architecture is a good choice when you want to design a robust and flexible application. The core of the Clean Architecture is the Domain layer. This is where you should define your important domain (or business) rules. In this video, I will show you how to go from an Anemic Domain model to a Rich Domain model by moving the application logic into the Domain layer. We will apply some of the concepts from Domain-Driven Design.
Join my weekly .NET newsletter:
www.milanjovanovic.tech
Subscribe for more:
ru-vid.com...
Chapters
0:00 What we are going to build
1:23 Anemic domain model
2:54 Refactoring to a rich domain model - Part 1
4:33 Static factory pattern
8:16 Refactoring to a rich domain model - Part 2
11:21 How to encapsulate collections
16:35 Refactoring to a rich domain model - Part 3
18:32 Moving logic to the domain layer
21:49 How to encapsulate collections (again)
24:15 How to deal with external dependencies
28:12 Questions left unanswered
29:58 How to get the source code
29 июн 2024