This is a part of my query:
WHERE GroupId IN (@groupIds)
With @groupIds being a List of integers of IDs. How can I pass that list as a parameter in a SqlConnection? I'm trying:
return conn.Query<>(query, new { @groupIds }).ToList();
But that's not working.