"ArgumentNullException: Value cannot be null. Parameter name: provider" error occurs when accessing certain navigation properties after Skip() #3844
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Minimal repro steps
Create these two entities.
This will work:
But this will not work (see exception below):
You can select the p.Employee.Id after the skip, but not p.Employee.FirstName. Both work without the skip.
Expected result
You should be able to use .Select() after .Skip() and access navigation properties. It works fine in EF6 (although EF6 requires an OrderBy before the Skip). Using OrderBy before skip does not fix the issue in EF7.
Actual result
The text was updated successfully, but these errors were encountered: