InvalidCastException with value types and logging applied to the DbContext

InvalidCastException with value types and logging applied to the DbContext

Hi,

We are using Microsoft.EntityFrameworkCore 7.0.15 and Devart.Data.Oracle.EFCore 10.2.0.7.

Some of our queries use value types in the where clause but don't work when we enable logging for the DbContext. I have a attached a small project which reproduces the problem.

Thanks for your help!