Linq – How to ‘select new’ inside Linq lambda expression

lambdalinq

How do i do this in one statement vs breaking up in two?

 var newpeople= _rep.GetPeople().Where(p=>p.personID).Select(new KindoFPerson...id=p.id etc)

Best Solution

var newpeople= _rep.GetPeople().Where(p=>p.personID)
    .Select(p => new KindoFPerson...id=p.id etc)

Note the new "p =>".