---
title: "Discussion on \"Prevent overselling in EF Core: concurrency-safe stock updates\" | Hashnode"
description: "Discussion on \"Prevent overselling in EF Core: concurrency-safe stock updates\". Stop two customers buying the last item: fix the lost update in EF Core with a conditional ExecuteUpdateAsync or a concurrency token, on any database."
url: "https://hashnode.com/posts/prevent-overselling-in-ef-core-concurrency-safe-stock-updates/6acfc9282593964e88179483"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Prevent overselling in EF Core: concurrency-safe stock updates](https://rgk.hashnode.dev/prevent-overselling-in-ef-core-concurrency-safe-stock-updates?utm_source=hashnode&utm_medium=feed)

Stop two customers buying the last item: fix the lost update in EF Core with a conditional ExecuteUpdateAsync or a concurrency token, on any database.

Oct 14 · 5 min read · rgk.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#docker](https://hashnode.com/tag/docker)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[GANESH KUMAR](https://hashnode.com/@rgk)

@rgk · Chenn

  
[View profile](https://hashnode.com/@rgk)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
