linq include with condition
Posted
by user276640
on Stack Overflow
See other posts from Stack Overflow
or by user276640
Published on 2010-03-01T23:57:15Z
Indexed on
2010/03/17
18:11 UTC
Read the original article
Hit count: 232
i have function
public Menu Details(int? id)
{
return _dataContext.Menu.Include("ChildMenu").FirstOrDefault(m => m.MenuId == id);
}
now i need to add condition to child list ChildMenu something like fieldname=id. how can i do it?
© Stack Overflow or respective owner