/// <summary> /// Creates the aggregate expression using <see cref="EnumerableSelectorAggregateFunctionExpressionBuilder"/>. /// </summary> /// <param name="enumerableExpression">The grouping expression.</param> /// <param name="liftMemberAccessToNull"></param> /// <returns></returns> public override Expression CreateAggregateExpression(Expression enumerableExpression, bool liftMemberAccessToNull) { var builder = new EnumerableSelectorAggregateFunctionExpressionBuilder(enumerableExpression, this); builder.Options.LiftMemberAccessToNull = liftMemberAccessToNull; return builder.CreateAggregateExpression(); }
/// <summary> /// Creates the aggregate expression using <see cref="EnumerableSelectorAggregateFunctionExpressionBuilder"/>. /// </summary> /// <param name="enumerableExpression">The grouping expression.</param> /// <returns></returns> public override Expression CreateAggregateExpression(Expression enumerableExpression) { var builder = new EnumerableSelectorAggregateFunctionExpressionBuilder(enumerableExpression, this); return builder.CreateAggregateExpression(); }