title: Nested objects in Dapper Query parameter
body: <p>I have an object like the following and I would like to send it as a parameter for a Dapper query.</p>
  
  <pre><code>var person = new {
      Name = "John",
      Company = new {
          Name = "ACME"
      }
  };
  
  var res = connection.Query("select concat(@Name, @Company_Name) as concatted", person);
  </code></pre>
  
  <p>My problem is that the <code>@Company_Name</code> does not get used. I tried replacing it with <code>@Company.Name</code>, but that gave an AggregateException, with a SystemNotSupportedException: <code>The member Company of type ..... cannot be used as a parameter value</code>.</p>
  
  <p>What is the correct way to use the nested object of the passed param object inside the query?</p>