connection.Query<int>("select 1 union all select 2 union all select 3")
.IsSequenceEqualTo(new[]{1,2,3});
}
publicvoidSelectBinary()
{
connection.Query<byte[]>("select cast(1 as varbinary(4))").First().SequenceEqual(newbyte[]{1});
}
publicvoidPassInIntArray()
{
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=newint[]{1,2,3}.AsEnumerable()})