private static string FormatParameters(SqlParameterCollection parameters) { return(parameters.Count == 0 ? "" : string.Join(", ", parameters.Select(p => FormatParameter(p)))); }