title: .NET CORE 3.1 - Entity Framework - IndexOf cannot be mapped
body: <p>When this code is ran, I get the following error message from EF :</p>
  <p><strong>could not be translated. Additional information: Translation of method 'System.Array.IndexOf' failed.</strong></p>
  <pre><code>var data = context.TeamMembers.AsQueryable();
  data = data.Where(t =&gt; Array.IndexOf(someArray, t.Type)&gt;-1);
  </code></pre>
  <p>why does it not implements such a simple function ?</p>
  <p>thanks for helping me on this</p>