Where/Select/OrderBy/etc clauses referencing DB types can't execute if helper function used #7808
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
(Terrible name, I'm sorry.)
I encountered this in production code I was switching over from Linq-to-Objects to EntityFramework. Confirmed with both 1.1.0 and 1.1.1 and both UWP and .Net.
When a Select() clause is used to capture and extend data from a DbSet, any usage after the Select clause of the Included field causes the expression compiler to throw on compilation, not execution, rending the Linq statement unusable.
Full code below, but sample version:
Steps to reproduce
Workaround: The issue with the expression compiler can be circumvented by modifying ClientQueryObject:
and
Further technical details
EF Core version: 1.1.1, 1.1.0
Database Provider: SQLite
Operating system: Windows 10
IDE: VS 2015
The text was updated successfully, but these errors were encountered: