filmov
tv
How To Use Domain-Driven Design In Clean Architecture
Показать описание
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:
Subscribe for more:
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
Комментарии