Summary
My query includes a DTO conversion. As soon as this DTO contains an enum, which should also be converted from a source to a target type, the query fails with the exception ‘`Expression not supported’. We actually use Automapper for the conversion, but during the error analysis we were able to reproduce the behavior with the simplest enum conversion, a cast. The behavior occurs with the LinqProvider.V3, as soon as we switch to the LinqV2 provider, it works.
It seems to me that the following requests in the community seem to have the same or at least a similar problem:
https://www.mongodb.com/community/forums/t/c-driver-linq3-convert-enuma-enumb-not-supported/267726