public static string ToSqlString(this IExpression expr) { using (var writer = new System.IO.StringWriter()) { var visitor = new SqlServerVisitor(writer, new NullAmlSqlWriterSettings()); expr.Visit(visitor); writer.Flush(); return(writer.ToString()); } }
public AmlVisitor(IServerContext context, XmlWriter writer) { _writer = writer; _context = context; _sqlVisitor = new SqlServerVisitor(new XmlTextWriter(writer), new NullAmlSqlWriterSettings(), context); }