Open smitpatel opened 5 years ago
Note: the above with an anonymous type, but the same applies also the ValueTuple/Tuple. For those, possibly consider row values when dealing with this (#26822, https://github.com/npgsql/efcore.pg/issues/2349) (i.e. the above could be rendered as (x, y) = (3, 4)
).
PS Removing duplicate label
It client evals because the constant is of type anonymous type which TypeMappingSource can never map. We need to be smart about identifying such pattern and deconstruct it. We do similar for joins already (or even for Where), when there are server correlated parameters which causes lack of ConstantExpression.