public static string Format(Expression expression) { var formatter = new SqlFormatter(null, false); formatter.Visit(expression); return formatter.ToString(); }
public static string Format(Expression expression, bool forDebug) { var formatter = new SqlFormatter(null, forDebug); formatter.Visit(expression); return formatter.ToString(); }
public virtual string Format(Expression expression) { return(SqlFormatter.Format(expression)); }
/// <summary> /// Converts the query expression into text of this query language /// </summary> /// <param name="expression"></param> /// <returns></returns> public virtual string Format(Expression expression) { // use common SQL formatter by default return(SqlFormatter.Format(expression)); }
protected virtual string FormatQuery(Expression query) { return(SqlFormatter.Format(query, true)); }