Exemplo n.º 1
0
        public static RelationalSpecification <TEntity> SkipTake <TEntity>(this RelationalSpecification <TEntity> specification,
                                                                           int skip, int take)
        {
            specification.ApplySkipTake(skip, take);

            return(specification);
        }
Exemplo n.º 2
0
        public static RelationalSpecification <TEntity> Include <TEntity>(this RelationalSpecification <TEntity> specification,
                                                                          Expression <Func <TEntity, object> > include)
        {
            specification.AddInclude(include);

            return(specification);
        }
Exemplo n.º 3
0
        public static RelationalSpecification <TEntity> OrderByDescending <TEntity>(
            this RelationalSpecification <TEntity> specification, Expression <Func <TEntity, object> > orderByDescending)
        {
            specification.ApplyOrderByDescending(orderByDescending);

            return(specification);
        }
Exemplo n.º 4
0
        public static RelationalSpecification <TEntity> Criteria <TEntity>(this RelationalSpecification <TEntity> specification,
                                                                           Expression <Func <TEntity, bool> > criteria)
        {
            specification.ApplyCriteria(criteria);

            return(specification);
        }