Exemplo n.º 1
0
        protected override object[] GetRibbonObjects()
        {
            if (_collection == null)
            {
                return(base.GetRibbonObjects());
            }

            return(new object[] { _collection.GetFilter(), _collection.GetGraph() });
        }
Exemplo n.º 2
0
        protected override AggregateBuilder GetQueryBuilder(AggregateConfiguration aggregateConfiguration)
        {
            var basicQueryBuilder = base.GetQueryBuilder(aggregateConfiguration);

            var rootContainer = basicQueryBuilder.RootFilterContainer;

            //stick our IFilter into the root container (actually create a new root container with our filter in it and move the old root if any into it)
            rootContainer =
                new SpontaneouslyInventedFilterContainer(new MemoryCatalogueRepository(), rootContainer == null ? null : new[] { rootContainer },
                                                         new[] { _collection.GetFilter() }, FilterContainerOperation.AND);

            basicQueryBuilder.RootFilterContainer = rootContainer;

            return(basicQueryBuilder);
        }