© Holger Schwichtenberg 2018
Holger SchwichtenbergModern Data Access with Entity Framework Core https://doi.org/10.1007/978-1-4842-3552-2_11

11. Preventing Conflicts (Concurrency)

Holger Schwichtenberg1 
(1)
Essen, Germany
 

In many production scenarios, it’s possible for multiple people or automatic background tasks to access the same records at the same time. This can lead to conflicts in which contradictory data changes take place. This chapter shows how to detect and resolve such conflicts in Entity Framework Core.

A Look at the History of Concurrency

Like its predecessor Entity Framework and the underlying basic technology ADO.NET, Entity Framework Core does not support the blocking of data records for read access by other processes. This was a deliberate ...

Get Modern Data Access with Entity Framework Core: Database Programming Techniques for .NET, .NET Core, UWP, and Xamarin with C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.