In such a two tables
table Person
{
int Id -> primary key
varchar name
varchar nick
int GroupId -> foreign key
}
table Group
{
int Id -> primary key
varchar name
}
If I use
var result = (from c in myDataBase.Group
select c).ToList<Group>();
I get only list of Group, but field System.Data.Objects.DataClasses.EntityCollection<Person> is empty. How should I change query to get also list of Persons?
I solved problem with:
Btw: what is equivalent of
Include()in linq queryfrom...where...select?