Not entirely clear what you're trying to do, but assuming you're using Entity Framework, something like this should work:
return _entities.EmployeeCount.Where(ec => indType.Contains(ec.Industry_ID));
If the
Industry_ID
column on the
EmployeeCount
entity doesn't match the column of the same name on the
Company
entity, then you'll need a navigation property:
return _entities.EmployeeCount.Where(ec => indType.Contains(ec.Company.Industry_ID));
If the
EmployeeCount
set doesn't return an instance of your
EmployeeCount
class, then add a
.Select(...)
to the end:
return _entities.EmployeeCount
.Where(ec => indType.Contains(ec.Industry_ID))
.Select(ec => new EmployeeCount
{
Company_ID = ec.Company_ID,
Industry_ID = ec.Industry_ID,
Company_Name = ec.Company_Name,
City = ec.City,
Number_Employees = ec.Number_Employees,
});