DB request with a list in where clause in asp mvc

aaepo

New Member
Is it possible to have a where clause with a previous list ? For exemple : \[code\]List<Stable> StableList= db.Stables.Where(s => s.OwnerId == user.UserId).ToList();List<Pony> PonyList= db.Ponys.Where(p=> p.PonyStableId == {StableList.StableId })OrderByDescending(p => p.PostDate).ToList();\[/code\]
 
Back
Top