public class Foo { public int Id { get; set; } public int UserId { get; set; } }
This appears to be the way to do this asynchronously:
Assuming you are using Entity Framework 6.0 (prerelease):
var userId = ...; var foos = await db.Foos.Where(x => x.UserId == userId).ToListAsync();