Closed magicmoux closed 5 years ago
The expression tree looks correct for that test, so I believe the issue is in the EF itself.
I totally agree with you that the issue is in EFCore. Maybe it would be advisable to state into the doc that serialization may be provider-specific and not addressed by DD thus should be handled specificly then.
Hi @hazzik,
I'm not sure wether it's an issue that should be addressed by DD but I noticed errors on EFCore tests :
It seems that non-string serialization is provider-related (the same TestSelectMultipleLevelsOfAbstractMembersOverTphHierarchy test works perfectly well with EF6). After some tests, I could solve part of the problem but the solution won't work on nullables (either Nullable<> or non-ValueType expressions)
The question is: should we force a ToString call on Concat for non-string values occurrences ? The only other alternative is to rework the source lambda expression like :
p => p.Species + " : " + (p.IsPet ? Boolean.TrueString : Boolean.FalseString)
which seems pretty cumbersome to me.
Any Idea ? Max.