Mert AKYILDIZ

Mert AKYILDIZ

  • 1.6k
  • 149
  • 155

Linq Question

Nov 28 2024 6:07 AM

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 (1)