Closed fairking closed 4 years ago
This issue is similar to the issue encountered in #2322, where Town
property in the Select
method is not equal to the Town
in the Where
method, as ReflectedType
is not the same, which is an OData specific. Unfortunately, Relinq uses their TransparentIdentifierRemovingExpressionVisitor
in the parsing stage which we cannot replace by our modified version (we modified it with #2322) as ExpressionResolver is not meant to be replaced and used in a lot of places internally.
The workaround is to use our modified TransparentIdentifierRemovingExpressionVisitor
after the parsing is done, which is not ideal as we have to traverse the query model one more time. On re-motion, there is already an opened issue for this, where I suggested to add a way to override the default behavior.
Thank you guys 👍
I encounter the following error while trying to filter by base class member. Filtering by own members is working fine.
Please see the repository: https://github.com/fairking/NhOdataTest
Error happens if the following url hit:
https://localhost:5001/odata/weatherforecast?$filter=town eq 'London'
However own member works fine:
https://localhost:5001/odata/weatherforecast?$filter=town2 eq 'London'
Error: