Fix: "An exception was thrown while attempting to evaluate a LINQ query parameter expression" in EF Core 11
EF Core throws this when a client-evaluated piece of your query throws while EF evaluates it. Read InnerException, turn on EnableSensitiveDataLogging, and move the null check outside the lambda.