InvalidCastException when filtering a projected list #4094
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Using version 7.0.0-rc2-16556 which is the latest on myget as of this writing.
Consider the below 2 entities:
When entities have a PK field of type
Guid
such as above, the below code throwsInvalidCastException
whenToList()
runs. The same code executes without any exceptions when the PK field is of typeint
although the executed result is wrong as it returns empty list where it should return a list with 1 item in it (See linked repro).I have included a repro here: http://1drv.ms/1P5iSGA - Filename: EF7Issues.rar
This tests both cases where PK field is
int
in repro1.cs and when PK field isGuid
in repro2.cs.Note: Both cases throw
InvalidCastException
in 7.0.0-rc1-final.The text was updated successfully, but these errors were encountered: