Skip to Main Content
Entity Framework 4 in Action
book

Entity Framework 4 in Action

by Stefano Mostarda, Daniele Bochicchio, Marco De Sanctis
May 2011
Intermediate to advanced content levelIntermediate to advanced
576 pages
19h 11m
English
Manning Publications
Content preview from Entity Framework 4 in Action

Chapter 8. Handling concurrency and transactions

 

This chapter covers
  • Understanding the concurrency problem
  • Configuring concurrency
  • Managing concurrency exceptions
  • Managing transactions

 

Suppose you want to book a flight online. You search for the flight you want and find an available seat, but when you click the reservation button, the system says the flight is fully booked. If you search for the flight again, it isn’t shown.

What happened is that at the moment when you searched for the flight, a seat was available; but in the time between the search response and the booking attempt, someone else booked the last seat. There were concurrent searches for the last seat, and the first person to book it won. If the booking application hadn’t ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional ADO.NET 3.5 with LINQ and the Entity Framework

Professional ADO.NET 3.5 with LINQ and the Entity Framework

Roger Jennings
ASP.NET MVC 4 in Action

ASP.NET MVC 4 in Action

Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter
Entity Framework 6 Recipes, Second Edition

Entity Framework 6 Recipes, Second Edition

Brian Driscoll, Nitin Gupta, Rob Vettor, Zeeshan Hirani, Larry Tenny

Publisher Resources

ISBN: 9781935182184Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link