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.
Connected.Framework/Connected.Expressions/Expressions/AggregateSubqueryExpression.cs

20 lines
707 B

2 years ago
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; }
}