☄️ 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: / milanjovanovic
Domain-Driven Design is a powerful approach to designing software. However, it isn't so easy to create rich domain models if you aren't working with an ORM. So how do you work with Domain-Driven Design without an ORM? The Memento pattern, also known as the Snapshot pattern, comes in to solve this problem.
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Subscribe for more:
/ @milanjovanovictech
Chapters
0:00 What problem the Snapshot pattern solves
1:41 Implementing the Snapshot pattern
5:22 Implementing a SQL repository
5:51 Inserting to the database with the Snapshot pattern
7:43 Updating the database with the Snapshot pattern
9:30 Reading from the database with the Snapshot pattern
11:54 Snapshot pattern in action