maliming
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
4 deletions
-
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); |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
|