Hvad med noget i stil med:
var foundResult =
from Buildings in sec.Buildings
where Buildings.Tenants.Where(p => p.id == IDToFind).Count() > 0
select Buildings;
Rettelse ... nok mere noget i stil med:
var foundResult =
from Buildings in sec.Buildings
where Buildings.Tenants.Count(p => p.id == IDToFind) > 0
select Buildings;
Indlæg senest redigeret d. 18.09.2015 01:01 af Bruger #2193