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.
This could be done in one line too
public string ToInStatement(this int[] values) { string[] stringValues = Array.ConvertAll(values, Convert.ToString); string result = "(" + String.Join(",", stringValues) + ")"; return result; }