I am trying to run this simple Dapper example from the test suite in Mysql 5.6.10 (AWS Aurora).
var p = new DynamicParameters(new { a = 1, b = 2 });
p.Add("c", dbType: DbType.Int32, direction:ParameterDirection.Output);
cnn.Execute(@"set @c = @a + @b", p);
var results = p.Get<int>("@c");
However, an exception is being thrown. The @c is being interpreted as NULL>

I would like to use two output parameters to return the number of rows affected by an insert statement and the last inserted ID.