public static AST.ICommonTableDefinition TableDef <TType>( TableReferenceCreator <TType> c, SetSelectExpression expr) { return (new AST.CommonTableDefinition <TType>(PlainSelectExpression.NewSet(expr), c)); }
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)); }
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))); }