public static bool IsDeadlockOrTimeout(this SqlException exception) { return(exception.IsTimeout() || exception.IsDeadlock()); }