I would like to get all matched Entities
from an EntityCollection
by a value, but my current statement only allow return of Entity
, and not EntityCollection
.
//only allow return 1 entity
var matchedRecords = allRecords.Entities.Where
(x => x.GetAttributeValue<EntityReference>
("ccc_batchId").Id == batchId);
May I know how can I tweak the above query?