title: How can I get my dapper result to be a List?
body: <p>Why I can't add a <code>.ToList()</code> on this? The only thing Intellisense is allowing is <code>.ToString()</code>.</p>
  
  <pre><code>//..
  string sqlQuery = "SELECT sum(SellingPrice) as SellingPrice, sum(MarkupPercent) as MarkupPercent, sum(MarkupAmount) as MarkupAmount FROM ProfitMargins WHERE QuoteId in @QuoteId group by multiplier";
  {
      List&lt;ProfitMargin&gt; profitMargin = (List&lt;ProfitMargin&gt;)await conn.QueryAsync&lt;List&lt;ProfitMargin&gt;&gt;(sqlQuery, new { QuoteId = QuoteIds.ToArray()})  //would like to add .ToList() here;
  
      return profitMargin;
  }
  //..
  </code></pre>
  
  <p>UPDATE</p>
  
  <p>I believe the problem has to do with conn.queryasync  (conn is context.Database.Connection.ConnectionString) instead of context.Database.SqlQuery</p>