public void Example3_Dapper()
{
using (var connection = new SqlConnection(s_ConnectionString))
{
Assert.AreEqual(2, connection.Execute(@"
set nocount on
create table #t(i int)
set nocount off
insert #t
select @a a union all select @b
set nocount on
drop table #t", new { a = 1, b = 2 }));
}
}