Esempio n. 1
0
        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 virtual SqlGenerator CreateSqlGenerator()
 {
     return(SqlGenerator.CreateInstance());
 }