WCF Multi-layer Services Development with Entity Framework - Fourth Edition by Mike Liu

WCF Multi-layer Services Development with Entity Framework - Fourth Edition by Mike Liu

Author:Mike Liu [Liu, Mike]
Language: eng
Format: epub, azw3, mobi
Publisher: Packt Publishing
Published: 2014-10-30T22:00:00+00:00


Testing the conflicts

Now run the program. You will get an output, as shown in the following screenshot:

From this screenshot, we know both updates have been submitted to the database without any problem. If you query the database, you will find that the price of product 2 is now 20, not 21, because the first user's update overwrote the second user's update.

Turning on concurrency verification

Now, open Northwind.edmx, click on the UnitPrice member of the Product entity, and change its Concurrency Mode property to Fixed, as shown in the following screenshot:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.