title: Is there a way to force const inlining for generated query in LINQ to SQL?
body: <p>LINQ to SQL always converts values into query parameters in the output. For example:</p>
  
  <pre><code>someTable.Where(n =&gt; n.Field == 5);
  </code></pre>
  
  <p>produces:</p>
  
  <pre><code>WHERE Field = @p0
  </code></pre>
  
  <p>This causes problems on certain query optimization scenarios. Is there a way to force values to be inlined in generated SQL, so that it becomes:</p>
  
  <pre><code>WHERE Field = 5
  </code></pre>
  
  <p>? Would LINQ to Entities provide a way or does it behave the same?</p>