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

            _fromTable = fromTable;

            return this;
        }