List<BusinessObjects.BusinessEntity> relatedBEs =
(from be in context.BusinessEntities
.Where(w=> RelatedBusinessEntityGuids.Contains(w.BusinessEntityGuid))
.Select(s=>s.Name)).ToList;
问问题
1580 次
1 回答
0
尝试这个:
List<BusinessObjects.BusinessEntity> relatedBEs = context.BusinessEntities.Where(w=> RelatedBusinessEntityGuids.Contains(w.BusinessEntityGuid)).ToList();
更新:
List<string> names= context.BusinessEntities.Where(w=> RelatedBusinessEntityGuids.Contains(w.BusinessEntityGuid)).Select(s=>s.Name).ToList();
于 2013-07-30T09:12:52.563 回答