title: Dapper.NET and stored proc with multiple result sets
body: <p>Is there any way to use Dapper.NET with stored procs that return multiple result sets?</p>
  
  <p>In my case, the first result set is a single row with a single column; if it's <code>0</code> then the call was successful, and the second result set will contain that actual rows/columns of data. (and if it was non-zero, an error occured and no second result set will be provided)</p>
  
  <p>Any chance to handle this with Dapper.NET? So far, I'm only ever getting back that single <code>0</code> - but nothing more.</p>
  
  <p><strong>Update:</strong> OK, it works fine - as long as the result set no. 2 is a single entity:</p>
  
  <pre><code>Dapper.SqlMapper.GridReader reader = 
      _conn.QueryMultiple("sprocname", dynParams, 
      commandType: CommandType.StoredProcedure);
  
  int status = reader.Read&lt;int&gt;().FirstOrDefault();
  MyEntityType resultObj = reader.Read&lt;MyEntityType&gt;().FirstOrDefault();
  </code></pre>
  
  <p>Now, I have <strong>yet another</strong> requirement.</p>
  
  <p>Dapper's multi-mapping (splitting up a single row returned from SQL Server into two separate entities) for that second result set doesn't seem to be supported as of yet (at least there doesn't seem to be an overload of <code>.Read&lt;T&gt;</code> that can handle multi-mapping).</p>
  
  <p>How can I get split that row into two entities?</p>