You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Connected.Expressions.Translation;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
|
|
namespace Connected.Expressions;
|
|
|
|
|
|
|
|
|
|
public sealed class AggregateSubqueryExpression : DatabaseExpression
|
|
|
|
|
{
|
|
|
|
|
public AggregateSubqueryExpression(Alias groupByAlias, Expression aggregateInGroupSelect, ScalarExpression aggregateAsSubquery)
|
|
|
|
|
: base(DatabaseExpressionType.AggregateSubquery, aggregateAsSubquery.Type)
|
|
|
|
|
{
|
|
|
|
|
AggregateInGroupSelect = aggregateInGroupSelect;
|
|
|
|
|
GroupByAlias = groupByAlias;
|
|
|
|
|
AggregateAsSubquery = aggregateAsSubquery;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Alias GroupByAlias { get; }
|
|
|
|
|
public Expression AggregateInGroupSelect { get; }
|
|
|
|
|
public ScalarExpression AggregateAsSubquery { get; }
|
|
|
|
|
}
|