How can you accomplish the strongly typed include when you are navigating past a collection of related entities.
In the example below I have had to define one of my includes as a string since Jobs is a RelatedEntityList, and not just a single entity. Is there some function I am missing that would allow me to strongly type this?
Example:
var punchUser =
(await _punchUser
.FindAsync(e => e.RecordId == punchId
&& e.PunchPin == punchPin,
null,
options =>
options
//.Include(user => user.Employee.Jobs)
.Include("Employee.Jobs.LwHrJob")
.Include(user => user.Employee.OrgLevel1)
.Include(user => user.Employee.OrgLevel2)
.Include(user => user.Employee.OrgLevel3)
.Include(user => user.Employee.OrgLevel4)
.Include(user => user.Employee.OrgLevel5)
)).FirstOrDefault();
Thank you,
Kat