Exemple #1
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("SET [");
            dc.Append(_name);
            dc.Append("] AS");

            dc.EndOfLine();
            dc.IncLevel();

            dc.BeginLine();
            _asMember.Draw(dc);

            dc.DecLevel();
        }
        public void Draw(MdxDrawContext dc)
        {
            dc.AppendLine("WITH");
            dc.IncLevel();

            int i = 0;

            foreach (var measure in _members)
            {
                dc.BeginLine();

                measure.Draw(dc);

                dc.EndOfLine();
                i++;
            }

            dc.DecLevel();
        }
        public void Draw(MdxDrawContext dc)
        {
            dc.IncLevel();

            int i = 0;

            foreach (var column in _columns)
            {
                column.Draw(dc);
                dc.Append(i < _columns.Count - 1 ? "," : "");

                dc.EndOfLine();
                i++;
            }

            dc.DecLevel();

            dc.Append("ON COLUMNS");
        }