I have this relationship :
public class Company
{
public virtual ICollection<Employee> Employee { get; set; }
}
Inside of Employee I have a Profile property:
public class Employee
{
public virtual Profile Profile { get; set; }
}
I'm able to get all the employees but not the Profile
property.
And the request :
var result = await Context.Company.Include(a => a.Employee).Where(a => a.Token == Token).SingleOrDefaultAsync();
The result is retrieved but not the Profile.