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())); }
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;
public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + Info.SqlFullName;
public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + GetDisplayText(context);
/// <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;
public string ToString(BuildingContext context) => PartsUtils.GetIndent(context.Indent) + context.DialectOption.StringAddOperator;