title: Dapper Parameter replace not working for Top
body: <p>This is my sql</p>
  
  <pre><code>var maxLimit =100;
  var sql = "Select Top @MaxLimit from Table WHere data =@Id"
  conn.Query&lt;Result&gt;(sql, new  {
                  Id = customerId,
                  MaxLimit = maxLimit
              })
  </code></pre>
  
  <p>But I get a system error </p>
  
  <blockquote>
    <p>incorrect syntax near @MaxLimit.</p>
  </blockquote>
  
  <p>Is Dapper not able to parametrize fields like Top, or Fetch?</p>