0

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.

Matheus Lima
  • 2,103
  • 3
  • 31
  • 49

0 Answers0