ClaudioX Posted November 5, 2012 Report Share Posted November 5, 2012 Boa tarde pra todos!Na pagina de tutorial asp.net, tem o seguinte trecho de código:@foreach (var item in Model) { <tr> <td> @Html.DisplayFor(modelItem => item.Title) </td> <td> @Html.DisplayFor(modelItem => item.ReleaseDate) </td> <td> @Html.DisplayFor(modelItem => item.Genre) </td> <td> @Html.DisplayFor(modelItem => item.Price) </td> <th> @Html.DisplayFor(modelItem => item.Rating) </th> <td> @Html.ActionLink("Edit", "Edit", new { id=item.ID }) | @Html.ActionLink("Details", "Details", { id=item.ID }) | @Html.ActionLink("Delete", "Delete", { id=item.ID }) </td> </tr> } O "=>" no treho @Html.DisplayFor(modelItem => item.Price) quer dizer o que?Abraço, obrigado pela ajuda, t+ Quote Link to comment Share on other sites More sharing options...
0 ursolouco Posted November 6, 2012 Report Share Posted November 6, 2012 Salve,Lambda Expression => http://msdn.microsoft.com/en-us/library/bb397687.aspx Quote Link to comment Share on other sites More sharing options...
0 ClaudioX Posted November 8, 2012 Author Report Share Posted November 8, 2012 Vlw urso, nesse caso a variavel "modelItem" é instanciada pela framework em outro local, certo?Obrigado, t+ Quote Link to comment Share on other sites More sharing options...
Question
ClaudioX
Boa tarde pra todos!
Na pagina de tutorial asp.net, tem o seguinte trecho de código:
O "=>" no trehoquer dizer o que?
Abraço, obrigado pela ajuda, t+
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.