Unit of Work pattern and persistence
-
02-10-2019 - |
Question
I have been reading about Unit of Work pattern but I am confused about how the UoW actually persists data.
When we commit the changes, UoW should iterate through the list of Added, Updated and Deleted objects and somehow find a class responsible to Add, Update, Delete objects of a certain type.
I couldn't find an example showing this technique.
Any advice on this would be greatly appreciated.
Mosh
Solution
Check this post: Unit of Work Design Pattern
which points to this link: http://www.codeinsanity.com/2008/09/unit-of-work-pattern.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow