From c5a99ff4c2f81a67547758a53d23db022f866652 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Mon, 11 Apr 2022 13:03:04 +0300 Subject: [PATCH] Update Concurrency-Check.md --- docs/en/Concurrency-Check.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/Concurrency-Check.md b/docs/en/Concurrency-Check.md index 9bad5f816f..bf31d3db10 100644 --- a/docs/en/Concurrency-Check.md +++ b/docs/en/Concurrency-Check.md @@ -60,7 +60,7 @@ public class UpdateBookDto : IHasConcurrencyStamp } ``` -Set the **ConcurrencyStamp** input value to the entity in the **UpdateAsync** method of your application service, for that purpose you can use the `SetConcurrencyStampIfNotNull` method as below: +Set the **ConcurrencyStamp** input value to the entity in the **UpdateAsync** method of your application service as below: ```csharp public class BookAppService : ApplicationService, IBookAppService @@ -71,7 +71,7 @@ public class BookAppService : ApplicationService, IBookAppService { var book = await BookRepository.GetAsync(id); - book.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp); + book.ConcurrencyStamp = input.ConcurrencyStamp; //set other input values to the entity ... @@ -120,7 +120,7 @@ public class UpdateBookDto : IHasConcurrencyStamp } ``` -Set the **ConcurrencyStamp** input value to the entity in the **UpdateAsync** method of your application service, for that purpose you can use the `SetConcurrencyStampIfNotNull` method as below: +Set the **ConcurrencyStamp** input value to the entity in the **UpdateAsync** method of your application service as below: ```csharp public class BookAppService : ApplicationService, IBookAppService @@ -131,7 +131,7 @@ public class BookAppService : ApplicationService, IBookAppService { var book = await BookRepository.GetAsync(id); - book.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp); + book.ConcurrencyStamp = input.ConcurrencyStamp; //set other input values to the entity ...