我想Entities从EntityCollection一个值中得到所有匹配,但我当前的语句只允许返回Entity,而不是EntityCollection。
//only allow return 1 entity
var matchedRecords = allRecords.Entities.Where
(x => x.GetAttributeValue<EntityReference>
("ccc_batchId").Id == batchId);
我可以知道如何调整上述查询吗?