Mert AKYILDIZ

Mert AKYILDIZ

  • 1.6k
  • 145
  • 43

Question about Linq

Nov 27 2024 2:19 PM

How to get parent model  as a result. I want to get  MasterData type as a result. i want to use where condition in Attributes but i want to receive Master Data Type as a result

   var result= MasterData.SelectMany(ca => ca.Attributes)
.Where(x => MasterDataAttId_All.Contains(x.AttributeId))
                 .ToList();


Answers (1)