protected virtual void GenerateTextForNonSelectExpression(ISqlCommandBuilder commandBuilder, Expression expression)
        {
            ArgumentUtility.CheckNotNull("commandBuilder", commandBuilder);
            ArgumentUtility.CheckNotNull("expression", expression);

            SqlGeneratingExpressionVisitor.GenerateSql(expression, commandBuilder, this);
        }
Ejemplo n.º 2
0
        public static void GenerateSql(Expression expression, ISqlCommandBuilder commandBuilder, ISqlGenerationStage stage)
        {
            ArgumentUtility.CheckNotNull("expression", expression);
            ArgumentUtility.CheckNotNull("commandBuilder", commandBuilder);
            ArgumentUtility.CheckNotNull("stage", stage);

            var visitor = new SqlGeneratingExpressionVisitor(commandBuilder, stage);

            visitor.VisitExpression(expression);
        }