Пример #1
0
        internal override string ToString(string indent)
        {
            var sb = new StringBuilder(32);

            sb.Append(FirstTableRef.ToString(indent) + "\n");

            sb.AppendFormat(" {1}{0}\n ", TsqlFragmentToString.JoinType(QualifiedJoinType, JoinHint), indent);

            //if (SecondTableRef.OneLine())
            //{
            //    sb.Append(SecondTableRef.ToString());
            //}
            //else
            //{
            //sb.Append("\r\n");
            sb.Append(SecondTableRef.ToString(indent));
            //}

            sb.Append("\n" + indent + "ON ");

            //if (JoinCondition.OneLine())
            //{
            //    sb.Append(JoinCondition.ToString());
            //}
            //else
            //{
            //sb.Append("\r\n");
            sb.Append(JoinCondition.ToString(""));
            //}

            return(sb.ToString());
        }