title: Automatically mapping output parameters with Dapper
body: <p>I've been using Dapper to call stored procedures passing it an object. For example:</p>
  
  <p>If I have an object:</p>
  
  <pre><code>public int ID { get; set; }    
  public int Year { get; set; }
  </code></pre>
  
  <p>I can create this object and pass it to my <code>Execute</code> call as the parameters. Dapper automatically maps all of those properties into parameters and executes the stored procedure. Awesome.</p>
  
  <p>What about output parameters? If my object looked like the following how can I get Dapper to populate that property with the output parameter value?</p>
  
  <pre><code>public int ID { get; set; }    
  public int Year { get; set; }
  public int OutputParameter { get; set; }
  </code></pre>
  
  <p>Do output parameters have to be added as <code>DynamicParameters</code>?</p>