2
Answers

Linq Question

Mert AKYILDIZ

Mert AKYILDIZ

Nov 28
291
1

i want to receive Sections within MasterDataAttId_All bu this code returns all sections if any section id contains MasterDataAttId_All. How to receive Sections that it's id equals any MasterDataAttId_All's id

var result = MasterData.Where(md => md.sections.Any(x => MasterDataAttId_All.Contains(x.SectionId))).ToList()

Answers (2)