Ejemplo n.º 1
0
        /// <summary>
        /// Sets the <see cref="MdxQuery"/> as parent query source and returns the updated current instance of <see cref="MdxQuery"/>.
        /// It will clear any cubes if specified.
        /// </summary>
        /// <param name="innerQuery">Specified <see cref="MdxQuery"/> as query source.</param>
        /// <returns>Returns the updated current instance of <see cref="MdxQuery"/>.</returns>
        public MdxQuery From(MdxQuery innerQuery)
        {
            this.cubes.Clear();

            this.InnerQuery = innerQuery;
            return(this);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Appends the specified <see cref="MdxAxis"/> and returns the updated current instance of <see cref="MdxQuery"/>.
        /// It will inner query if specified.
        /// </summary>
        /// <param name="cube">Specified <see cref="MdxCube"/> as query source.</param>
        /// <returns>Returns the updated current instance of <see cref="MdxQuery"/>.</returns>
        public MdxQuery From(MdxCube cube)
        {
            this.InnerQuery = null;

            this.cubes.Add(cube);
            return(this);
        }