Esempio n. 1
0
 public CustomRule[] FindAll(GetAllCustomRulesCriterion criterion)
 {
     using (var uow = _unitOfWorkFactory.Create())
     {
         var findQuery = uow.BuildQuery();
         return(findQuery.For <IEnumerable <CustomRuleEntity> >()
                .With(criterion)
                .Select(_ => _customRuleMapper.Map(_))
                .ToArray());
     }
 }
Esempio n. 2
0
 public CustomRule[] FindAll(GetAllCustomRulesCriterion criterion)
 {
     return(new CustomRule [] { });
 }
Esempio n. 3
0
 public IEnumerable <CustomRuleEntity> Execute(GetAllCustomRulesCriterion criterion)
 {
     return(DbContext.Set <CustomRuleEntity>()
            .ToArray());
 }