3
Answers

Question about Linq

Mert AKYILDIZ

Mert AKYILDIZ

Nov 27
299
1

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