I have 2 classes:
public class Employee
{
public int Id {get;set;}
public string Name {get;set;}
}
public class Remuneration
{
public int Id {get;set;}
public Employee Employee {get;set;}
public int Amount {get;set;}
}
The normal query:
return _context.Remunerations.Include("Employee")
works perfect
But when I am using Albahari's LinqKit and giving the query as below:
return _context.Remunerations.AsExpandable().Include("Employee")
It does not give any error there.
But does not include the Employee data in the result.