【发布时间】:2020-10-24 12:00:29
【问题描述】:
我想通过一个值从EntityCollection 中获取所有匹配的Entities,但我当前的语句只允许返回Entity,而不是EntityCollection。
//only allow return 1 entity
var matchedRecords = allRecords.Entities.Where
(x => x.GetAttributeValue<EntityReference>
("ccc_batchId").Id == batchId);
我可以知道如何调整上述查询吗?
【问题讨论】:
标签: linq dynamics-crm entity entitycollection