Extends SqlGeneratingSelectExpressionVisitor by building an in-memory projection. This should be used for the SqlStatement.SelectProjection of the outermost SqlStatement in a query. For substatements, SqlGeneratingSelectExpressionVisitor should be used instead.
Inheritance: SqlGeneratingSelectExpressionVisitor, ISqlConvertedBooleanExpressionVisitor
コード例 #1
0
        public virtual void GenerateTextForOuterSelectExpression(ISqlCommandBuilder commandBuilder, Expression expression)
        {
            ArgumentUtility.CheckNotNull("commandBuilder", commandBuilder);
            ArgumentUtility.CheckNotNull("expression", expression);

            SqlGeneratingOuterSelectExpressionVisitor.GenerateSql(expression, commandBuilder, this);
        }
    public new static void GenerateSql (Expression expression, ISqlCommandBuilder commandBuilder, ISqlGenerationStage stage)
    {
      ArgumentUtility.CheckNotNull ("expression", expression);
      ArgumentUtility.CheckNotNull ("commandBuilder", commandBuilder);
      ArgumentUtility.CheckNotNull ("stage", stage);

      EnsureNoCollectionExpression (expression);

      var visitor = new SqlGeneratingOuterSelectExpressionVisitor (commandBuilder, stage);
      visitor.VisitExpression (expression);
    }
コード例 #3
0
        public static void GenerateSql(Expression expression, ISqlCommandBuilder commandBuilder, ISqlGenerationStage stage, SetOperationsMode setOperationsMode)
        {
            ArgumentUtility.CheckNotNull("expression", expression);
            ArgumentUtility.CheckNotNull("commandBuilder", commandBuilder);
            ArgumentUtility.CheckNotNull("stage", stage);

            EnsureNoCollectionExpression(expression);

            var visitor = new SqlGeneratingOuterSelectExpressionVisitor(commandBuilder, stage, setOperationsMode);

            visitor.Visit(expression);
        }