예제 #1
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));
 }
예제 #2
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)));
        }