Forum Stats

  • 3,854,668 Users
  • 2,264,397 Discussions
  • 7,905,749 Comments

Discussions

Invalid cast exception when using XDocument valueConverter and EFCoreSecondLevelCacheInterceptor

User_WPD5L
User_WPD5L Member Posts: 1 Green Ribbon

Hi,

We are using an oracle 11 database with the ODP for EF Core 5 (5.21.1) and since we did the upgrade from EF Core 3.1, we are encountering an issue when we try to create a query on an entity with a valueConverter (XDocument to string) in combination with EFCoreSecondLevelCacheInterceptor (2.4.1)

On entities without this valueConverter, the query and caching is working correctly.

Both the EFTableRowsDataReader and OracleDataReader inherit from the same DbDataReader class, but the casting is not working.

Is this a known issue that will be fixed in an upcoming version?

Answers