How to Translate this LINQ Query to use Lambda Expressions Instead?

Well you already have the where portion of it in there so I am assuming you only need the select.

Well you already have the where portion of it in there so I am assuming you only need the select: this.Context. TblUserInfos . Where(p => p.

Status == 1) . Select(p => new { p. UserID, p.

UserName, p.tblUserType. UserType }).

Use the . Select IEnumerable extension method to project the result set into an anonymous type. Like this: var someAnonymousType = this.Context.

TblUserInfos . Where(p => p. Status == 1) .

Select(p => new {p. UserID,p. UserName,p.tblUserType.

UserType };).

This.Context.tblUserInfos. Where(p => p. Status == 1) .

Select(p => new { p. UserID, p. UserName, p.tblUserType.

UserType }).

LINQPad can convert queries between LINQ and lambda syntax.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions