title: Can a Dapper DynamicParameters object be enumerated like a dictionary of parameters?
body: <p>I know I can use a <code>ParameterDirection</code> with Dapper.DynamicParameters:</p>
  
  <pre><code>var parameters = new DynamicParameters();
  parameters.Add("iparam", 42);
  parameters.Add("oparam", null, DbType.Int32, ParameterDirection.Output);
  connection.Execute(sql, parameters);
  </code></pre>
  
  <p>But can I do so when using a <code>Dictionary&lt;string, object&gt;</code>?</p>
  
  <pre><code>var parameters = new Dictionary&lt;string, object&gt;();
  parameters.Add("iparam", 42);
  parameters.Add("oparam", /* ??? */ );
  connection.Execute(sql, parameters);
  </code></pre>
  
  <p>Alternatively, how may I iterate over a <code>DynamicParameters</code> in order to get the parameter names and values?</p>
  
  <p>Original title: </p>
  
  <blockquote>
    <p>Can a Dapper parameter with ParameterDirection be added using a
    dictionary?</p>
  </blockquote>