protected void CatchException(CommandErrorEventArgs e) { Database.OnCommandError(e); if (e.ThrowException == true) { var ex = this.CreateException(e); ExceptionDispatchInfo.Capture(ex).Throw(); } }
protected void CatchException(CommandErrorEventArgs e) { Database.OnCommandError(e); if (e.ThrowException == true) { var ex = this.CreateException(e); throw ex; } }