public Query(TabularDataSource dataSource) { fromClause = new FromClause(dataSource); selectClause = new SelectClause(); whereClause = new WhereClause(); groupByClause = new GroupByClause(); orderByClause = new OrderByClause(); }
public Join(JoinType joinType, TabularDataSource source, IBoolean expression) { this.joinType = joinType; this.source = source; this.expression = expression; }
public Join(TabularDataSource source, IBoolean expression) { this.joinType = JoinType.Inner; this.source = source; this.expression = expression; }
public Field(TabularDataSource tabularDataSource, string name) { this.tabularDataSource = tabularDataSource; this.name = name; }
public static Field All(TabularDataSource tabularDataSource) { return(new Field(tabularDataSource, "*")); }
public Query Join(JoinType joinType, TabularDataSource source, IBoolean expression) { return(new Query(this, new FromClause(fromClause, fromClause.List.Add(new Join(joinType, source, expression))))); }
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; }