dotnet / dotnet/EntityFramework.Docs
Document that transaction should be rolled back before retrying
Open
area-optimistic-concurrency
area-transactions
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
If a transaction is being used and SaveChanges fails, then the transaction must be rolled back and a new transaction started before re-trying SaveChanges. This is because the state manager does not get updated from the database unless the database update was successful.
See https://github.com/aspnet/EntityFrameworkCore/issues/18212
Contributor guide
Assessment
This issue has not been assessed yet.