public void Example5_Dapper()
{
using (var connection = new SqlConnection(s_ConnectionString))
{
connection.Query<int>("select * from (select 1 as Id union all select 2 union all select 3) as X where Id in @Ids", new { Ids = new int[] { 1, 2, 3 } });
}
}