Esempio n. 1
0
 public static SelectExpressionToken PlainSelect(
     SelectValuesExpressionNode select,
     FromExpressionNode from,
     WhereExpressionNode where     = null,
     GroupByExpressionNode groupBy = null,
     OrderByExpressionNode orderBy = null)
 {
     return
         (new SelectExpressionToken(
              select,
              from,
              where.ToOption(),
              groupBy.ToOption(),
              orderBy.ToOption()));
 }
Esempio n. 2
0
 public static SelectExpressionToken PlainSelect(
     SelectValuesExpressionNode select,
     FromExpressionNode from,
     WhereExpressionNode where     = null,
     GroupByExpressionNode groupBy = null,
     OrderByExpressionNode orderBy = null,
     LimitOffsetNode limitOffset   = null)
 {
     return
         (new SelectExpressionToken(
              select,
              from,
              where.ToOption(),
              groupBy.ToOption(),
              orderBy.ToOption(),
              limitOffset ?? new LimitOffsetNode(FSharpOption <int> .None, FSharpOption <int> .None)));
 }
Esempio n. 3
0
 public static AST.ICommonTableDefinition TableDef <TType>(
     TableIdentifier <TType> tdef,
     SelectValuesExpressionNode select,
     FromExpressionNode from,
     WhereExpressionNode where     = null,
     GroupByExpressionNode groupBy = null,
     OrderByExpressionNode orderBy = null,
     LimitOffsetNode limitOffset   = null)
 {
     return
         (new AST.CommonTableDefinition <TType>(
              PlainSelectExpression.NewPlain(
                  new SelectExpressionToken(
                      select,
                      from,
                      where.ToOption(),
                      groupBy.ToOption(),
                      orderBy.ToOption(),
                      limitOffset ?? new LimitOffsetNode(FSharpOption <int> .None, FSharpOption <int> .None))),
              tdef));
 }