private void LogErrorSummary(ILog log, Exception e, ISqlQuery query) { var sqlException = e.InnerException as SqlException; if (sqlException == null) return; log.LogSqlException(sqlException, query, ConnectionString); }