Esempio n. 1
0
        public IEnumerable <TResult> Percolate <TResult>(bool clearQueryContents = true) where TResult : new()
        {
            var lator   = new Percolator <TResult>(_axisGroups, _components);
            var command = lator.ScoopCommand;
            //var cellSet = this._provider.GetCellSet(command);
            var reader = _provider.GetReader(command);

            if (clearQueryContents)
            {
                Clear();
            }

            var mapper = new Mapperlator <TResult>(reader);

            return(mapper);
        }
Esempio n. 2
0
        /// <summary>
        /// The magic word. Executes this cube's objects in an MDX query against the analysis services, and maps the results to the type applied to the generic parameter.
        /// </summary>
        /// <typeparam name="T_MapTo">The type to map the results of the query to.</typeparam>
        /// <param name="clearQueryContents">Optional boolean to indicate whether to clear this object's query objects after the query is executed.</param>
        /// <returns>An IEnumerable of the type specified.</returns>
        public IEnumerable <T_MapTo> Percolate <T_MapTo>(bool clearQueryContents = true) where T_MapTo : new()
        {
            var lator   = new Percolator <T>(this._axisGroups, this._components);
            var command = lator.MdxCommand;
            ////var cellSet = this._provider.GetCellSet(command);
            var reader = this._provider.GetReader(command);

            if (clearQueryContents)
            {
                this.Clear();
            }

            var mapper = new Mapperlator <T_MapTo>(reader);

            return(mapper);
        }