Пример #1
0
        public static RelationalSpecification <TEntity> Criteria <TEntity>(this RelationalSpecification <TEntity> specification,
                                                                           Expression <Func <TEntity, bool> > criteria)
        {
            specification.ApplyCriteria(criteria);

            return(specification);
        }
Пример #2
0
 public SpecificationBuilder <T> ApplyCriteria(Expression <Func <T, bool> > criteria)
 {
     _relationalSpecification.ApplyCriteria(criteria);
     return(this);
 }