예제 #1
0
 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());
     }
 }
예제 #2
0
 public AmlVisitor(IServerContext context, XmlWriter writer)
 {
     _writer     = writer;
     _context    = context;
     _sqlVisitor = new SqlServerVisitor(new XmlTextWriter(writer), new NullAmlSqlWriterSettings(), context);
 }