Extends SqlGeneratingExpressionVisitor by emitting "AS" aliases for NamedExpression and SqlEntityExpression instances. This should be used for the SqlStatement.SelectProjection of substatements. For the outermost statement, SqlGeneratingOuterSelectExpressionVisitor should be used.
Inheritance: SqlGeneratingExpressionVisitor, ISqlGroupingSelectExpressionVisitor
        public virtual void GenerateTextForSelectExpression(ISqlCommandBuilder commandBuilder, Expression expression)
        {
            ArgumentUtility.CheckNotNull("commandBuilder", commandBuilder);
            ArgumentUtility.CheckNotNull("expression", expression);

            SqlGeneratingSelectExpressionVisitor.GenerateSql(expression, commandBuilder, this);
        }
    public static new 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 SqlGeneratingSelectExpressionVisitor (commandBuilder, stage);
      visitor.VisitExpression (expression);
    }
Exemple #3
0
        public static new 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 SqlGeneratingSelectExpressionVisitor(commandBuilder, stage);

            visitor.Visit(expression);
        }