Skip to content

Commit

Permalink
Fix typo (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
ar1k authored Nov 19, 2023
1 parent 2c2e874 commit 02cf744
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if (numUpdated == 0)
}
```

In this code, we use a LINQ `Where` operator to apply an update to a specific Blog, and only if its concurrency token has a specific value (e.g. the one we saw when querying the Blog from the database). We the check how many rows were actually updated by `ExecuteUpdate`; if the result is zero, no rows were updated and the concurrency token was likely changed as a result of a concurrent update.
In this code, we use a LINQ `Where` operator to apply an update to a specific Blog, and only if its concurrency token has a specific value (e.g. the one we saw when querying the Blog from the database). We then check how many rows were actually updated by `ExecuteUpdate`; if the result is zero, no rows were updated and the concurrency token was likely changed as a result of a concurrent update.

## Limitations

Expand Down

0 comments on commit 02cf744

Please sign in to comment.