Obfuscated Scenario: A person has zero, one or many pets.
Using Linq to Sql, the need is to get an IQueryable
list of pets for the given pe
This works for me (with different tables of course, but same relationship):
IQueryable personPets = (
from p in db.Person
where p.ID == somePersonID
select p
).Single().Pets.AsQueryable();
Although I'd probably write it in some variation of this way:
var personPets =
db.Person.Single(t => t.Id == somePersonId).Pets.AsQueryable();