MENU

Fun & Interesting

Modeling a Domain With Domain-Driven Design From Scratch | DDD

Milan Jovanović 103,652 lượt xem 2 years ago
Video Not Working? Fix It Now

Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/domain-modeling
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic

Domain-Driven Design is a set of principles for how you can design and model a rich domain in your application. In this video, I'll start with a diagram of a domain model and then I'm going to apply some Domain-Driven Design patterns to create the domain models.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech?sub_confirmation=1

Chapters
0:00 Domain model diagram
0:58 Organizing around features
1:59 Creating the Customer Entity
4:23 Adding the Product Entity
5:19 Modeling Money as a Value Object
7:00 Sku as Value Object with Static Factory
10:36 Creating the Order aggregate
11:34 How should we model the LineItem?
13:33 Adding LineItems to Order
16:19 Static Factory for creating an Order
17:15 Common patterns in DDD

Comment