Open nathanvj opened 2 years ago
From triage: we should find what the underlying data store expecting the expression to look like. Then we can update our code to generate such an expression for open types.
I am facing the same problem. (using EF Core 7 & SQL server) I implemented workarounds by overriding FilterBinder/OrderByBinder. It seems to be worked fine, but IN operator throws NRE...
I am facing the same problem. (using EF Core 7 & SQL server) I implemented workarounds by overriding FilterBinder/OrderByBinder. It seems to be worked fine, but IN operator throws NRE...
what is your workaround like? It is hard to make an expression with dynamic property.
Assemblies affected ASP.NET Core OData 8.0.11
Context I'm using EF with PostgreSQL And have an entity that needs to support 'custom fields'. I followed this guide from Microsoft and managed to get the following result for example:
Describe the bug When I try to filter or groupby on a dynamic property, I get the following exception:
Entity Model
EDM (CSDL) Model
Request GET
https://localhost:9001/v1/tickets?$filter=language%20eq%20%27French%27
Response See exception above.
Expected behavior To get all tickets where language is equal to 'French'.
Screenshots N/A