Browse Source

Merge pull request #12224 from abpframework/auto-merge/rel-5-2/979

Merge branch dev with rel-5.2
pull/12225/head
Engincan VESKE 4 years ago
committed by GitHub
parent
commit
b8a8ea0042
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      docs/en/Concurrency-Check.md

8
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 ...

Loading…
Cancel
Save