Open
Description
In response to here.
Thanks, v1.7.115 fixes the exception. It's a bit hard to repro this because we dynamically build expressions. I've tried to create a repro using LINQ code, but the compiler optimizes away the casts, so it results in a different tree.
The best I can offer to repro at the moment is:
- Clone https://github.com/json-api-dotnet/JsonApiDotNetCore/tree/net50 (note the non-default branch name)
- Add
EnableUnsafeBinaryFormatterSerialization
to JsonApiDotNetCoreExample project and set as startup - Add a breakpoint to EntityFrameworkCoreRepository.ApplyQueryLayer
- Run
run-docker-postgres.ps1
, which starts a PostgreSQL database in docker container - Run and open
http://localhost:14140/api/v1/todoItems?filter=and(startsWith(description,'T'),equals(priority,'Low'),not(equals(owner,null)),not(equals(assignee,null)))
in a browser.
This should hit the breakpoint and enable you to activate the visualizer.