BalticAmadeus.FluentMdx.MdxAxis.GetStringExpression C# (CSharp) Method

GetStringExpression() protected method

protected GetStringExpression ( ) : string
return string
        protected override string GetStringExpression()
        {
            if (!IsNonEmpty)
            {
                if (!Properties.Any())
                    return string.Format(@"{0} ON {1}",
                        AxisSlicer,
                        AxisIdentifier);

                return string.Format(@"{0} DIMENSION PROPERTIES {1} ON {2}",
                    AxisSlicer,
                    string.Join(", ", Properties),
                    AxisIdentifier);
            }

            if (!Properties.Any())
                return string.Format(@"NON EMPTY {0} ON {1}",
                    AxisSlicer,
                    AxisIdentifier);

            return string.Format(@"NON EMPTY {0} DIMENSION PROPERTIES {1} ON {2}",
                AxisSlicer,
                string.Join(", ", Properties),
                AxisIdentifier);
        }