| Property | Value |
|---|---|
| Severity | Warning |
| Category | Reliability |
| Code fix | No |
| Analyzer | Al1312ReadModifyWriteWithoutTransactionAnalyzer |
| Enabled by default | Yes |
A method that reads data and then writes based on that data without a transaction is vulnerable to race conditions. Another connection could modify the data between the read and write. Use BeginTransaction/BeginTransactionAsync to ensure isolation.