EntityA.B refers to EntityB EntityB.Item refers to IItem (persistent interface type)
Throws KeyNotFound exception. If you remove g.Key.Item.Name from the select list (and replace it with something like g.Key.SomeValueField), it works. In the meantime, I made a workaround to select g.Key (then access what would be g.Key.Item.Name through code), and added a prefetch for what would be g.Key.Item.Name so that there isn't a second roundtrip to DB. |
We've investigated the case and found a bug. Fixing...
Also, DO throws a KeyNotFoundException for this:
...
Seems like it does this because the property in the projected type is of a different type than the field in the entity.