I’ve been trying to use a lambda for this :
var y = from r in rs.Returns from z in r.Tags where z.Name.Contains(c) select r;
I tried var r = rs.Returns.Where(x=>x.Tags.Where(x=>x.Name.Contains(c)));but it didnt work. What is the correct lambda so I dont have to use y & z
You need a
SelectManyto translate the second “from” clause:That’s a pretty direct translation. Another alternative would be to use: