예제 #1
0
        public IScoopQueryable <T> Count()
        {
            var comp = new ScoopComponent(Component.Count);

            _components.Add(comp);
            return(this);
        }
예제 #2
0
        public IScoopQueryable <T> FromSubCube(Expression <Func <T, IEnumerable <object> > > subCube)
        {
            var comp = new ScoopComponent(Component.SubCube);

            comp.Creator = subCube;
            _components.Add(comp);
            return(this);
        }
예제 #3
0
        public IScoopQueryable <T> WithMember(string name, byte?axisNumber, Expression <Func <T, Member> > memberCreator)
        {
            var comp = new ScoopComponent(Component.CreatedMember, name, memberCreator);

            comp.Axis             = axisNumber;
            comp.DeclarationOrder = _createdDepth++;
            _components.Add(comp);
            return(this);
        }
예제 #4
0
        public IScoopQueryable <T> DataTablesFiltre(IDataTablesRequest dataTablesRequest)
        {
            var comp = new ScoopComponent(Component.DataTablesRequest)
            {
                DataTablesRequest = dataTablesRequest
            };

            _components.Add(comp);
            return(this);
        }
예제 #5
0
        public IScoopQueryable <T> Filtre(T entity)
        {
            var comp = new ScoopComponent(Component.Filtre)
            {
                Entity = entity
            };

            _components.Add(comp);
            return(this);
        }
예제 #6
0
        public IScoopQueryable <T> OrderByDesc(Expression <Func <T, object> > solid)
        {
            var comp = new ScoopComponent(Component.OrderByDesc)
            {
                Creator = solid
            };

            _components.Add(comp);
            return(this);
        }
예제 #7
0
        public IScoopQueryable <T> WithSet(string name, byte?axisNumber, Expression <Func <T, Set> > setCreator)
        {
            var comp = new ScoopComponent(Component.CreatedSet, name, setCreator)
            {
                Axis = axisNumber, DeclarationOrder = _createdDepth++
            };

            _components.Add(comp);
            return(this);
        }
예제 #8
0
        public IScoopQueryable <T> Paggin(int page, int pageCount)
        {
            var comp = new ScoopComponent(Component.Paggin)
            {
                ScoopPagging = new ScoopPagging()
                {
                    Page = page, PageCount = pageCount
                }
            };

            _components.Add(comp);
            return(this);
        }