title: how to return tuple of primitive data types in dapper
body: <p>I have been using dapper for one of my projects and in one case I wanted to return a tuple of primitive data types. (only a single row) Since I used dapper, I really would like to use dapper for this case also. I checked these links but couldn't find a solution</p>
  
  <p><a href="https://stackoverflow.com/questions/34867432/can-i-map-a-result-to-tuple-in-dapper">Can I map a result to Tuple in Dapper?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/17755061/dapper-multiple-objects-from-one-row">Dapper multiple objects from one row</a></p>
  
  <p><a href="https://stackoverflow.com/questions/10202584/using-dapper-to-map-more-than-5-types">Using Dapper to map more than 5 types</a></p>
  
  <p>This is what my code looks like,</p>
  
  <pre><code>Using(_dbTransaction = _dbConnection.BeginTransaction()){
  
       var command = new CommandDefinition(
                  "SELECT ID1,ID2 " +
                  "FROM table " +
                  "WHERE ID0 = @ID",
                  new {ID = 34},_dbTransaction); //34 is just a number
  
      var dataSet   = _dbConnection.QueryFirst&lt;Tuple&lt;uint, decimal&gt;&gt;(command);
  
      //assign the retrieved values to properties of orderItem (orderItem is a passed object as a parameter)
      orderItem.Id = dataSet.item1;
      orderItem.ContainerPrice = dataSet.item2; 
  
  }
  </code></pre>
  
  <p>but this would generate an exception </p>
  
  <blockquote>
    <p>{"A parameterless default constructor or one matching signature (System.UInt32 Id, System.Decimal ContainerPrice) is required for System.Tuple`2[[System.UInt32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] materialization"}</p>
  </blockquote>
  
  <p>It would be a great help if can suggest a method or point out where I went wrong</p>