public string ToString(BuildingContext context)
        {
            var next = context.ChangeTopLevelQuery(true).ChangeIndent(0);

            return(PartsUtils.GetIndent(context.Indent) +
                   string.Format(_formatText, _args.Select(e => e.ToString(next)).ToArray()));
        }
示例#2
0
        public string ToString(BuildingContext context)
        {
            object obj;

            if (!context.UserData.TryGetValue(typeof(WithEntriedCode), out obj))
            {
                return(_define.ToString(context));
            }

            var withEntied = (Dictionary <string, bool>)obj;

            return(withEntied.ContainsKey(_body) ?
                   (PartsUtils.GetIndent(context.Indent) + _body) :
                   _define.ToString(context));
        }
 public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + _name;
示例#4
0
 public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + Info.SqlFullName;
示例#5
0
 public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + GetDisplayText(context);
示例#6
0
 /// <summary>
 /// To string.
 /// </summary>
 /// <param name="context">Context.</param>
 /// <returns>Text.</returns>
 public string ToString(BuildingContext context) => PartsUtils.GetIndent(_indent + context.Indent) + _text;
 /// <summary>
 /// To string.
 /// </summary>
 /// <param name="isTopLevel">Is top level.</param>
 /// <param name="indent">Indent.</param>
 /// <param name="context">Context.</param>
 /// <returns>Text.</returns>
 public override string ToString(bool isTopLevel, int indent, BuildingContext context) => PartsUtils.GetIndent(_indent + indent) + _text;
示例#8
0
 public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + context.DialectOption.StringAddOperator;