diff --git a/docs/en/Concurrency-Check.md b/docs/en/Concurrency-Check.md index a0a97d8d98..25e60713c7 100644 --- a/docs/en/Concurrency-Check.md +++ b/docs/en/Concurrency-Check.md @@ -76,8 +76,8 @@ public class BookAppService : ApplicationService, IBookAppService book.ConcurrencyStamp = input.ConcurrencyStamp; //set other input values to the entity ... - - await BookRepository.UpdateAsync(book); + //use autoSave: true to get the latest ConcurrencyStamp + await BookRepository.UpdateAsync(book, autoSave: true); } } ``` @@ -136,8 +136,8 @@ public class BookAppService : ApplicationService, IBookAppService book.ConcurrencyStamp = input.ConcurrencyStamp; //set other input values to the entity ... - - await BookRepository.UpdateAsync(book); + //use autoSave: true to get the latest ConcurrencyStamp + await BookRepository.UpdateAsync(book, autoSave: true); } } ```