Modifying properties in object with LINQ and functions Lamba

Posted by Ph.E on Stack Overflow See other posts from Stack Overflow or by Ph.E
Published on 2010-03-31T17:47:00Z Indexed on 2010/03/31 17:53 UTC
Read the original article Hit count: 409

Filed under:
|
|

Friends,

I know how to deploy and retrieve a single element in LINQ, but how can I do to change all the properties in a list. In the line below, I can only modify a record, I would modify several.

_ListaAcaoMenuInfo.Where(p => p.Id_acao == id).FirstOrDefault().Id_menu = 0;

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc