How to Use Lambda Expression for LINQ query Expression.
> A Lambda expression is an anonymous function that you can use to create a delegate.
> By using Lambda expression ,you can write local function that can be passed as an
argument.
>Lambda Expression is helpful to write Linq query expression.
For an example :-
@Html.TextBoxFor(model=>model.Id)
@Html.TextBoxFor(model=>model.Name)
1> Create a project and name TestProject.
2> Create a new controller
Loot at picture :- in Get Image Action we used Lambda Symbol like a pointer to Statu Property.
Here also we followed same syntax in View (marked).
> A Lambda expression is an anonymous function that you can use to create a delegate.
> By using Lambda expression ,you can write local function that can be passed as an
argument.
>Lambda Expression is helpful to write Linq query expression.
For an example :-
@Html.TextBoxFor(model=>model.Id)
@Html.TextBoxFor(model=>model.Name)
1> Create a project and name TestProject.
2> Create a new controller
Loot at picture :- in Get Image Action we used Lambda Symbol like a pointer to Statu Property.
Here also we followed same syntax in View (marked).