title: PetaPoco and output parameters from stored procedures?
body: <p>I'm trying to setup an output parameter using PetaPoco.  I found someone using this sample online:</p>
  
  <pre><code>var ctx = new CustomDBDatabase();
  var total = new SqlParameter("Total", System.Data.SqlDbType.Int);
  total.Direction = System.Data.ParameterDirection.Output;
  
  var results = ctx.Query&lt;DBEntity&gt;("exec GetDBEntities @StartIndex, @MaxIndex, @TotalCount = @Total out", 
    id, start, max, total);
  
  int totalCount = (int)total.Value;
  </code></pre>
  
  <p>However, <code>total.value</code> returns null, even though when I run this statement directly against SQL Server, it returns me 3.  Is this setup correctly with PetaPoco?  Are output parameters supported?</p>
  
  <p>Thanks.</p>