There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.

DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses the ADO.NET EntityFramework.
PassGuideApp connects to the MS SQL Server database PassGuideDB.
PassGuideApp needs to handle concurrency conflicts.
PassGuideApp also needs to ensure that local changes are saved in PassGuideDB.

DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses the ADO.NET EntityFramework.
PassGuideApp connects to the MS SQL Server database PassGuideDB.
PassGuideApp needs to handle concurrency conflicts.
PassGuideApp also needs to ensure that local changes are saved in PassGuideDB.

Answer:

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


John Galt

John Galt

The answer seems correct. See the following link: http://msdn.microsoft.com/en-us/library/bb336792%28v=vs.110%29.aspx

If an optimistic concurrency violation has occurred, an OptimisticConcurrencyException is thrown. You can resolve an optimistic concurrency violation by catching it, calling the Refresh method with the StoreWins or ClientWins value, and then calling SaveChanges again.

The only thing that is not clear is why pick employees over orders:
‘(RefereshMode.ClientWins, employees)’
over
‘(RefreshMode.ClientWins, orders)

I’m guessing it’s another case of the question being copied wrong, or an incomplete exhibit.

John Galt

John Galt

Duplicate of question #14, but this one is in VB.