Tests.DapperReadmeVsChain.Example3_Dapper C# (CSharp) Method

Example3_Dapper() private method

private Example3_Dapper ( ) : void
return void
        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 }));
            }
        }