title: LINQ to Entities Where clause with custom method
body: <p>I'm using Entity Framework Core (2.0) and I have the following doubt.</p>
  
  <p>I'm not sure about what happens when I do this:</p>
  
  <pre><code>context.Customers.Where(c =&gt; MyCustomMethod(c));
  
  bool MyCustomMethod(Customer c) 
  {
      return c.Name.StartsWith("Something");
  }
  </code></pre>
  
  <p>Does it translate to SQL without problems?</p>
  
  <p>Is it different than writing:</p>
  
  <pre><code>context.Customers.Where(c =&gt; c.StartsWith("Something"));
  </code></pre>
  
  <p>In short, will I be able to wrap my validations for the Where clase inside a method? Does it break the translation to SQL?</p>