title: How to add multiple dynamic conditions or filters into LINQ query.?
body: <p>I am fetching the products list whose name starts with numbers, but i would like to apply the two more filters like with specific BranchId and isActive.</p>
  <p>Query which returns the list of products whose name starts with numbers.</p>
  <pre><code>List&lt;string&gt; searchP = new List&lt;string&gt; { &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;0&quot; };
  .....Where(x=&gt; searchP.Any(y=&gt; x.ProductName.StartsWith(x.ProductName))).ToList();
  </code></pre>
  <p>I have a list of filters in custom <code>FilterCollection</code> object named <code>filters</code> which has three properties, <code>filtername</code>, <code>operatorname</code> and <code>filtervalue</code>.</p>
  <p><code>filters.Add(FilterKey.BranchId, Filteroperator.Equals, 333);</code> same for <code>isActive</code>, this is what I have passed before one layer back.</p>
  <p>I would like to get the products whose name starts with number and having <code>BranchId==value</code> in filter and <code>isActive==filter value</code> i.e <code>true</code> / <code>false</code>.</p>