Shaolinq.Persistence.Linq.Nominator.VisitSelect C# (CSharp) Method

VisitSelect() protected method

protected VisitSelect ( SqlSelectExpression selectExpression ) : Expression
selectExpression SqlSelectExpression
return Expression
		protected override Expression VisitSelect(SqlSelectExpression selectExpression)
		{
			this.VisitSource(selectExpression.From);
			this.VisitColumnDeclarations(selectExpression.Columns);

			if (inProjection)
			{
				var saveCanBeColumn = this.canBeColumn;

				this.canBeColumn = c => c is SqlColumnExpression;

				this.VisitExpressionList(selectExpression.OrderBy);
				this.VisitExpressionList(selectExpression.GroupBy);
				this.Visit(selectExpression.Skip);
				this.Visit(selectExpression.Take);
				this.Visit(selectExpression.Where);

				this.canBeColumn = saveCanBeColumn;
			}

			return selectExpression;
		}
	}