On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of Lynda.com means you agree to these revised documents, so please take a few minutes to read and understand them.

Concurrency handling

- [Instructor] When multiple people can access a database…at the same time,…it's possible for the same row…to be updated by two different people.…With EF Core, we can build our application…to handle these exceptions to prevent users…from losing information.…It's going to take a little bit of set up,…but let's build out a feature…to show concurrency handling in EF Core.…First, we're going to make the total value field…on the order a concurrency token,…so that if an order changes value,…the status of the order cannot be set…with an old total.…

We're going to add the ability to discount an order…to change its total value,…and the ability to mark an order paid.…We're going to set up total value…as concurrency token on the order…so that if the order changes its total value,…the status of the order won't be updated…with the old total value.…This would prevent an order from being marked paid…with the wrong price.…This is a special case of using a concurrency token.…It's more common to use a concurrency token…for a whole row,…

Resume Transcript Auto-Scroll

Author

Released

6/21/2017

To get the most out of Entity Framework Core—a cross-platform way to access data from an application—it's important to know how to make sound architectural choices. In this course, learn how to choose an application architecture to use with Entity Framework Core for several different scenarios. Richard Goforth covers why all of this architecture is necessary, and dives into design patterns with Entity Framework Core, discussing topics such as data access layers, DTOs, and exposing the queryable interface from Entity Framework Core. He also goes into error handling strategies, architectural strategies for using Entity Framework Core within ASP.NET, unit testing, and mistakes to avoid when architecting software with Entity Framework Core.