title: The incoming tabular data stream remote procedure call protocol stream is incorrect. Too many parameters were provided in this RPC request
body: <p>I am facing an error which is:</p>
  
  <blockquote>
    <p>The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100.</p>
  </blockquote>
  
  <p>I have done some code where it is coming. The code is given below.</p>
  
  <pre><code> var statements = session.Query&lt;TBAStatementBankAccount&gt;().Where(x =&gt; x.TBABankAccount == bankAccount).ToList().Select(x =&gt; x.TBAStatement).ToList();
  
              var lstStatement = session.Query&lt;TBAStatement&gt;().Where(x =&gt; statements.Contains(x) &amp;&amp; x.FDate &lt; CutOffDate).ToList();
              var lstDate = lstStatement.OrderByDescending(x =&gt; x.FDate).ToList();
  </code></pre>
  
  <p>When I debug the code var statement retrieve around 8000 record. My problem is that how can I use In(Contains) method in lambda expression. I am stuck in this problem.</p>