MappedEntityDomainManager<TData,TModel>.GetOriginalValue Method

Definition

Gets the original value of an entity in case an update or replace operation resulted in an System.Data.Entity.Infrastructure.DbUpdateConcurrencyException. The original value extracted from the exception will get returned to the client so that it can merge the data and possibly try the operation again.

protected virtual object GetOriginalValue (System.Data.Entity.Infrastructure.DbUpdateConcurrencyException conflict);
abstract member GetOriginalValue : System.Data.Entity.Infrastructure.DbUpdateConcurrencyException -> obj
override this.GetOriginalValue : System.Data.Entity.Infrastructure.DbUpdateConcurrencyException -> obj
Protected Overridable Function GetOriginalValue (conflict As DbUpdateConcurrencyException) As Object

Parameters

conflict
System.Data.Entity.Infrastructure.DbUpdateConcurrencyException

The System.Data.Entity.Infrastructure.DbUpdateConcurrencyException thrown by the update or replace operation.

Returns

System.Object

The original value or null if none are available.

Applies to