Beispiel #1
0
 public Query(TabularDataSource dataSource)
 {
     fromClause    = new FromClause(dataSource);
     selectClause  = new SelectClause();
     whereClause   = new WhereClause();
     groupByClause = new GroupByClause();
     orderByClause = new OrderByClause();
 }
Beispiel #2
0
 public Join(JoinType joinType, TabularDataSource source, IBoolean expression)
 {
     this.joinType   = joinType;
     this.source     = source;
     this.expression = expression;
 }
Beispiel #3
0
 public Join(TabularDataSource source, IBoolean expression)
 {
     this.joinType   = JoinType.Inner;
     this.source     = source;
     this.expression = expression;
 }
Beispiel #4
0
 public Field(TabularDataSource tabularDataSource, string name)
 {
     this.tabularDataSource = tabularDataSource;
     this.name = name;
 }
Beispiel #5
0
 public static Field All(TabularDataSource tabularDataSource)
 {
     return(new Field(tabularDataSource, "*"));
 }
Beispiel #6
0
 public Query Join(JoinType joinType, TabularDataSource source, IBoolean expression)
 {
     return(new Query(this, new FromClause(fromClause, fromClause.List.Add(new Join(joinType, source, expression)))));
 }
Beispiel #7
0
 public static Query From(TabularDataSource tabularDataSource)
 {
     return(new Query(tabularDataSource));
 }
 public FromClause(FromClause fromClause, JoinList list)
     : base(list)
 {
     this.dataSource = fromClause.dataSource;
 }
 public FromClause(TabularDataSource dataSource, JoinList list)
     : base(list)
 {
     this.dataSource = dataSource;
 }
 public FromClause(TabularDataSource dataSource)
     : base(JoinList.Empty)
 {
     this.dataSource = dataSource;
 }