title: The LINQ expression node type 'Invoke' is not supported in LINQ to Entities in entity framework
body: <p>can anyone help me out in solving my issue. I am using the code given below:</p>
  
  <pre><code>public IEnumerable&lt;InvoiceHeader&gt; Getdata(Expression&lt;Func&lt;InvoiceHeader, bool&gt;&gt; predicate)
  {
      return AccountsContext.InvoiceHeaders.Include("Company").Include("Currency")
          .Include("BusinessPartnerRoleList").Include("DocumentType")
          .Where(predicate);
  }
  </code></pre>
  
  <p>.....</p>
  
  <p>In my code I am using as below</p>
  
  <pre><code>Expression&lt;Func&lt;InvoiceHeader, bool&gt;&gt; predicate = PredicateBuilder.True&lt;InvoiceHeader&gt;();
  predicate = predicate.And(o =&gt; o.CompanyId == oInvoiceHeader.CompanyId);
  List&lt;InvoiceHeader&gt; lstInvheader=Getdata(predicate).ToList();
  </code></pre>
  
  <p>By doing this I am getting the exception . [System.NotSupportedException] ---
  {"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities."}</p>