Beispiel #1
0
 TableSelectBuilder(ITableSource from, List <IWhereClause> whereClauses,
                    List <OrderByField> orderByClauses, ISelectColumns columnSelection = null,
                    IRowSelection rowSelection = null)
     : base(whereClauses, orderByClauses, columnSelection, rowSelection)
 {
     From = from;
 }
Beispiel #2
0
 UnionSelectBuilder(ISelect innerSelect, string customAlias, ITableAliasGenerator tableAliasGenerator, List <IWhereClause> whereClauses, List <OrderByField> orderByClauses,
                    ISelectColumns columnSelection = null, IRowSelection rowSelection = null)
     : base(whereClauses, orderByClauses, columnSelection, rowSelection)
 {
     this.innerSelect         = innerSelect;
     this.customAlias         = customAlias;
     this.tableAliasGenerator = tableAliasGenerator;
 }
Beispiel #3
0
        readonly OrderBy orderBy; // Can be null

        public Select(IRowSelection rowSelection, ISelectColumns columns, ISelectSource from, Where where, OrderBy orderBy)
        {
            this.rowSelection = rowSelection;
            this.columns      = columns;
            this.from         = from;
            this.where        = where;
            this.orderBy      = orderBy;
        }
Beispiel #4
0
 public void AddColumnSelection(ISelectColumns columns)
 {
     ColumnSelection = ColumnSelection == null
         ? columns
         : new AggregateSelectColumns(new List <ISelectColumns>()
     {
         ColumnSelection, columns
     });
 }
Beispiel #5
0
 protected SelectBuilderBase(List <IWhereClause> whereClauses, List <OrderByField> orderByClauses,
                             ISelectColumns columnSelection = null,
                             IRowSelection rowSelection     = null)
 {
     WhereClauses         = whereClauses;
     OrderByClauses       = orderByClauses;
     this.RowSelection    = rowSelection;
     this.ColumnSelection = columnSelection;
 }
Beispiel #6
0
 protected SelectBuilderBase(TSource from, List <IWhereClause> whereClauses, List <OrderByField> orderByClauses,
                             ISelectColumns columnSelection,
                             IRowSelection rowSelection,
                             bool shouldIgnoreDefaultOrderBy)
 {
     From                            = from;
     WhereClauses                    = whereClauses;
     OrderByClauses                  = orderByClauses;
     this.RowSelection               = rowSelection;
     this.ColumnSelection            = columnSelection;
     this.ShouldIgnoreDefaultOrderBy = shouldIgnoreDefaultOrderBy;
 }
Beispiel #7
0
 TableSelectBuilder(ITableSource from, List <IWhereClause> whereClauses,
                    List <OrderByField> orderByClauses, ISelectColumns columnSelection,
                    IRowSelection rowSelection, bool shouldIgnoreDefaultOrderBy)
     : base(from, whereClauses, orderByClauses, columnSelection, rowSelection, shouldIgnoreDefaultOrderBy)
 {
 }