示例#1
0
 /// <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));
 }
 public static string Format(Expression expression)
 {
     var formatter = new SqlFormatter(null);
     formatter.Visit(expression);
     return formatter.ToString();
 }