SQL Passing a List<int> as a SqlCommand Parameter
- by Christopher Kelly
can i pass a List into a SqlCommand as a paramter?
DELETE FROM MyTable WHERE Key IN @MyParam
command.Parameters.AddValue("MyParam",MyList);
i realize i could just loop over the list but i was looking for a cleaner solution.