var variable ="Select columns1,columns2,columns3 from schema.table where columns1 = ANY(@idsNumber)";
connection.Query(variable, new { idsNumber= new[] { 123, 432 } }).ToList();
I have this code for search a records in my Redshift Database, but when this execute him crash a error
Invalid operation: syntax error at or near ","
and i'dont know why its happened , Redshift is based in postgres and postgres use ANY not IN (IN not working too).
EDIT
I using dapper, and declare my connection in DAO like this
using (var connection = new NpgsqlConnection(RedshiftConnection.GetSecret(context, ESecretNameRedShift.DatabaseName)))
{
Can you help me, please?