1
List<BusinessObjects.BusinessEntity> relatedBEs = 
    (from be in context.BusinessEntities
.Where(w=> RelatedBusinessEntityGuids.Contains(w.BusinessEntityGuid))
.Select(s=>s.Name)).ToList;
4

1 に答える 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 に答える