title: linq to entities doesn't recognize a method
body: <p>I have those methods:</p>
  
  <pre><code>   public int count(
          Guid companyId, Expression&lt;Func&lt;T, bool&gt;&gt; isMatch)
      {
          var filters = new Expression&lt;Func&lt;T, bool&gt;&gt;[]{
              x =&gt; x.PriceDefinition.CompanyId == companyId,
              isMatch
          };
  
          return GetCount(filters);
      }
  
  public virtual int GetCount(
              IEnumerable&lt;Expression&lt;Func&lt;T, bool&gt;&gt;&gt; filters)
          {
              IQueryable&lt;T&gt; _query = ObjectSet;
  
              if (filters != null)
              {
                  foreach (var filter in filters)
                  {
                      _query = _query.Where(filter);
                  }
              }
  
             return _query.Count();
          }
  </code></pre>
  
  <p>When using:</p>
  
  <pre><code>count(some_guid, x =&gt; x.IsMatch(entityId, inviterId, routeId, luggageTypeId));
  </code></pre>
  
  <p>I get the following exception:  </p>
  
  <pre><code>LINQ to Entities does not recognize the method 'Boolean IsMatch(System.Nullable`1[System.Int64], System.Nullable`1[System.Int64], System.Nullable`1[System.Int64], System.Nullable`1[System.Int64])' method, and this method cannot be translated into a store expression.
  </code></pre>
  
  <p>What is the reason for this?<br>
  How can I solve it?</p>