Browse Source

Update `Concurrency-Check.md`.

pull/18908/head
maliming 3 years ago
committed by GitHub
parent
commit
d978a036ec
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      docs/en/Concurrency-Check.md

8
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);
}
}
```

Loading…
Cancel
Save