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

            _fromTable = fromTable;

            return this;
        }