public List <EmployeeModel> GetEmployee(Guid subscriberId, Expression <Func <EmployeeEntity, bool> > predicate) { using (var context = ContextProvider.Provide()) { var goodses = context.Employees.Where(s => s.SubscriberId == subscriberId).Where(predicate); return(_goodsJoiner.Join(goodses, context.EmployeeCategories).ToList()); } }
protected override List <EmployeeModel> SelectModel(IQueryable <EmployeeEntity> query, EmployeeContext context) { var models = _goodsJoiner.Join(query, context.EmployeeCategories); return(models.ToList()); }