private string FormatEntry() { var fullFormat = "/*{0}*/ {1} {2} -- @{3} ms {4}, {5}"; var strArgs = LoggingExtensions.ToSqlArgList(_args); var strRowCount = (_rowCount < 0) ? string.Empty : StringHelper.SafeFormat(", {0} row(s)", _rowCount); var strCacheType = _cacheType == CacheType.FullSet ? "FullSetCache" : "SparseCache"; var result = StringHelper.SafeFormat(fullFormat, strCacheType, _commandName, strArgs, _executionTime, strRowCount, _dateTime); return(result); }