title: How does internally QuerySingle or QueryFirst in Dapper work?
body: <p>I see that Dapper has QuerySingle and QueryFirst methods. Does QuerySingle check that the sql returns only one row and maps that? Does QueryFirst returns the first row mapped independently how many rows there are?</p>
  
  <p>If I want to make an any query, like anyItemSold:</p>
  
  <pre><code>Select Top 1 1 From Items Where IsSold = 1
  </code></pre>
  
  <p>Would I have to write it like this and maybe use ExecuteScalar?</p>