Exemple #1
0
 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>();
 }
Exemple #2
0
 internal void AddJoin(JoinType joinType, Table otherTable, ICriteria joinCriteria)
 {
     _joins.Add(new JoinInfo(joinType, otherTable, joinCriteria));
 }
Exemple #3
0
 public SelectJoinHelper InnerJoin(Table otherTable)
 {
     return new SelectJoinHelper(this, JoinType.Inner, otherTable);
 }
Exemple #4
0
 public SelectJoinHelper LeftOuterJoin(Table otherTable)
 {
     return new SelectJoinHelper(this, JoinType.LeftOuter, otherTable);
 }
Exemple #5
0
        public Select From(Table fromTable)
        {
            if (_fromTable != null)
            {
                throw new InvalidOperationException();
            }

            _fromTable = fromTable;

            return this;
        }