public IQueryable<Customer> WhereIn_FromDatabase() { List<CustomerType> customerTypes = customerTypeDao.Query().ToList(); IQueryable<Customer> result = customerDao.Query().Where(customer => customer.CustomerType.In(customerTypes)); return result; }