Example #1
0
 public static AST.ICommonTableDefinition TableDef <TType>(
     TableReferenceCreator <TType> c,
     SetSelectExpression expr)
 {
     return
         (new AST.CommonTableDefinition <TType>(PlainSelectExpression.NewSet(expr), c));
 }
Example #2
0
 public static AST.ICommonTableDefinition TableDef <TType>(
     TableReferenceCreator <TType> c,
     SelectValuesExpressionNode select,
     FromExpressionNode from,
     WhereExpressionNode where     = null,
     GroupByExpressionNode groupBy = null,
     OrderByExpressionNode orderBy = null)
 {
     return(TableDef(c.ToTableReference(), select, from, where, groupBy, orderBy));
 }
Example #3
0
        public static ValueNode Col <TTable>(TableReferenceCreator <TTable> c, string colDef)
        {
            var tref = c.ToTableReference().Reference;

            return(ValueNode.NewColumn(new Tuple <string, Type, ITableReference>(colDef, FigureOutTypeFor(colDef, tref), tref)));
        }