To specify type argument explicitly, do:
leagues.SelectMany<LeaguesType, TeamType>(l => l.Teams)
- Jon
1) Define the foreign key constraint in your database table
2) Run Dbmetal to create your DbLinq DataContext class
You database class should have both the Parent and Child tables now, with
the Parent having an EntitySet<Child> Child in the Children region. You can
then go through them like any other IEnumerable class:
foreach (Child _child in Parent.Child)
{
...
}
Should be that simple, unless of course I misunderstood the
question/problem.
- Sami