以下は、建物内のすべての人々とそのすべてのコンピューターを返します。これは機能します。
これを変更して、Active == 1 のコンピューターと ActivityTypeId == 5 の ActivityLog のみを含めるようにします。
public IQueryable<Person> GetPeople(int BuildingId)
{
return this.ObjectContext.People
.Include("Computers")
.Include("ActivityLog")
.Where(p => p.buildingId == BuildingId && !p.migrated)
.OrderBy(p => p.name);
}