DbCommandInterceptionContext<TResult>.OriginalResult Property

Definition

If execution of the operation completes without throwing, then this property will contain the result of the operation. If the operation was suppressed or did not fail, then this property will always contain the default value for the generic type.

public TResult OriginalResult { get; }
member this.OriginalResult : 'Result
Public ReadOnly Property OriginalResult As TResult

Property Value

TResult

Remarks

When an operation operation completes without throwing both this property and the Result property are set. However, the Result property can be set or changed by interceptors, while this property will always represent the actual result returned by the operation, if any.

Applies to