xxxxxxxxxx
var parameters = new DynamicParameters({ ProductId = 1 });
var sql = "select * from products where ProductId = @ProductId";
using (var connection = new SqlConnection(connString))
{
var product = connection.QuerySingle<Product>(sql, parameters);
}