3
Comments
  • 0
    If I'm not mistaken, this is the slowest possible way to build strings in C#
  • 0
    Also ignore the SQL injection, that is not the point right now and only about 100 people are supposed to have access to the endpoints that can exploit it.
  • 0
    StringBuilder with interpolation, you mean? If it's in a loop it's probably not the slowest.
  • 1
    @lorentz Slowest?

    foreach (var c in new[] { " and ", columnExpression, " like ", valueExpression }.SelectMany(x => x)) filter.Append(c);
Add Comment