From 2894347140b728f289c2458dfd23bcfb85369c98 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Thu, 23 Jun 2016 21:05:18 +0300 Subject: [PATCH] Update when to use and print the pitfalls --- src/MememntoPattern/MementoPatternExamples.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MememntoPattern/MementoPatternExamples.cs b/src/MememntoPattern/MementoPatternExamples.cs index 3c64def..a0ee9ca 100644 --- a/src/MememntoPattern/MementoPatternExamples.cs +++ b/src/MememntoPattern/MementoPatternExamples.cs @@ -41,7 +41,9 @@ namespace MememntoPattern { return @"When to use: When you need to be able to track the state of an object,or/and restore previous states as needed -When you cannot use simple operation undo/redo, by saving the commands (when there are side effects to the operations) - example translation"; +When you cannot use simple operation undo/redo, by saving the commands (when there are side effects to the operations) - example translation +Database transactions. +"; }