Рет қаралды 78,571
Get the source code for this video for FREE → the-dotnet-weekly.ck.page/dom...
☄️ 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
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:
www.milanjovanovic.tech
Read my Blog here:
www.milanjovanovic.tech/blog
Subscribe for more:
/ @milanjovanovictech
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