public GroupByAggregateTranslatingExpressionVisitor(RelationalProjectionExpressionVisitor projectionExpressionVisitor) { _projectionExpressionVisitor = projectionExpressionVisitor; _queryModelVisitor = projectionExpressionVisitor.QueryModelVisitor; _groupQuerySource = projectionExpressionVisitor._querySource; _sqlTranslatingExpressionVisitorFactory = projectionExpressionVisitor._sqlTranslatingExpressionVisitorFactory; _entityMaterializerSource = projectionExpressionVisitor._entityMaterializerSource; _selectExpression = _queryModelVisitor.TryGetQuery(_groupQuerySource); }