public static IList <SelectClauseExprRawSpec> MakeAggregateSelectListNoProps() { var container = SupportContainer.Instance; /* * top (*) * c1 (sum) c2 (10) * c1_1 (5) */ ExprNode top = new ExprMathNode(MathArithTypeEnum.MULTIPLY, false, false); ExprNode c1 = new ExprSumNode(false); ExprNode c1_1 = new SupportExprNode(5); ExprNode c2 = new SupportExprNode(10); top.AddChildNode(c1); top.AddChildNode(c2); c1.AddChildNode(c1_1); ExprNodeUtility.GetValidatedSubtree(ExprNodeOrigin.SELECT, top, SupportExprValidationContextFactory.MakeEmpty(container)); IList <SelectClauseExprRawSpec> selectionList = new List <SelectClauseExprRawSpec>(); selectionList.Add(new SelectClauseExprRawSpec(top, null, false)); return(selectionList); }
private static ExprEqualsNode MakeEqualsNode(string ident1, string stream1, object value) { ExprEqualsNode topNode = new ExprEqualsNodeImpl(false, false); ExprIdentNode i1_1 = new ExprIdentNodeImpl(ident1, stream1); var constantNode = new SupportExprNode(value); topNode.AddChildNode(i1_1); topNode.AddChildNode(constantNode); return(topNode); }