Surely there is a framework method that given an array of integers, strings etc converts them into a list that can be used in a SQL \"IN\" clause?
IN
e.g.
You can use the String.Join method, like this:
var str = "(" + string.Join(", ", Array.ConvertAll(values, v => v.ToString(CultureInfo.InvariantCulture)));
Assuming that values is an array, Array.ConvertAll should be more efficient than LINQ with ToArray.
values
Array.ConvertAll
ToArray