curiouswebster
asked on
Please explain the parts of these 2 LINQ expressions
List<MiddleTier.APX.Infras tructure.S alesForceS ervice.Ext ensionApp> innerextaplist =
extaplist.Join(savelist, ap => ap.App_id, s => s.externalid, (ap, s) =>
{ if (s.success &&Â !string.IsNullOrEmpty(s.id )) { ap.AccountId = s.id; return ap; } return null; }
).Where(ap => !(ap == null)).ToList();
List<CulturalCare.MiddleTi er.APX.Inf rastructur e.SalesFor ceService. ExtensionA pp> inneraplist =
savelist.Where(gl => !gl.success)
.Join(extaplist, outer => outer.externalid, inner => inner.Aupair_id, (outer, inner) => inner)
.ToList();
Thanks.
extaplist.Join(savelist, ap => ap.App_id, s => s.externalid, (ap, s) =>
{ if (s.success &&Â !string.IsNullOrEmpty(s.id
).Where(ap => !(ap == null)).ToList();
List<CulturalCare.MiddleTi
savelist.Where(gl => !gl.success)
.Join(extaplist, outer => outer.externalid, inner => inner.Aupair_id, (outer, inner) => inner)
.ToList();
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not a problem newbieweb, glad to help. đź‘Ť
ASKER