private Select(Result[] results) { _results = results; _fromTable = null; _distinct = false; _mappedColumns = new List<MappedColumn>(); _joins = new List<JoinInfo>(); _where = null; _groupBy = new List<Column>(); _orderBy = new List<OrderByInfo>(); }
internal void AddJoin(JoinType joinType, Table otherTable, ICriteria joinCriteria) { _joins.Add(new JoinInfo(joinType, otherTable, joinCriteria)); }
public SelectJoinHelper InnerJoin(Table otherTable) { return new SelectJoinHelper(this, JoinType.Inner, otherTable); }
public SelectJoinHelper LeftOuterJoin(Table otherTable) { return new SelectJoinHelper(this, JoinType.LeftOuter, otherTable); }
public Select From(Table fromTable) { if (_fromTable != null) { throw new InvalidOperationException(); } _fromTable = fromTable; return this; }