I've got these Classes:
class Family()
{
public int Id {get; set;}
public List<Person> members {get; set;}
}
class Person()
{
public int Id {get; set;}
public List<Items> items {get; set;}
public List<Person> friends {get; set;}
}
How can I get a Family with all their Persons and these persons should be populated with all their items and friends in one query?
This doesnt work:
(from f in fcontext.families
where f.Name == "Schmidt"
select f).Include("members.items").Include("members.friends").ToList();
Someone said that this is a possible duplicate, but its not, I'm having an exception when I try that.
I'm using MySQL Entity Framework Provider as the database behind is a MySQL DB. That throws this exception each time i have multiple includes:
Unknown column 'Join1.Id1' in 'on clause'.