public string Translate(DbExpression expression, out List <DbParam> parameters) { SqlGenerator generator = SqlGenerator.CreateInstance(); expression.Accept(generator); parameters = generator.Parameters; string sql = generator.SqlBuilder.ToSql(); return(sql); }
public DbExpressionVisitor <DbExpression> GetSqlGenerator() { return(SqlGenerator.CreateInstance()); }