public virtual void AddRange(SelectColumn[] items)
 {
     foreach (SelectColumn column in items)
     {
         base.List.Add(column);
     }
 }
Ejemplo n.º 2
0
 public override string RenderRowCount(SelectQuery query)
 {
     string str = this.RenderSelect(query, -1);
     SelectQuery query2 = new SelectQuery();
     SelectColumn column = new SelectColumn("*", null, "cnt", SqlAggregationFunction.Count);
     query2.Columns.Add(column);
     query2.FromClause.BaseTable = FromTerm.SubQuery(str, "t");
     return this.RenderSelect(query2);
 }
Ejemplo n.º 3
0
 public override string RenderSelect(SelectQuery query)
 {
     if ((query.Top > -1) && (query.OrderByTerms.Count > 0))
     {
         string str = this.RenderSelect(query, -1);
         SelectQuery query2 = new SelectQuery();
         SelectColumn column = new SelectColumn("*");
         query2.Columns.Add(column);
         query2.FromClause.BaseTable = FromTerm.SubQuery(str, "t");
         return this.RenderSelect(query2, query.Top);
     }
     return this.RenderSelect(query, query.Top);
 }
 public virtual void Remove(SelectColumn value)
 {
     base.List.Remove(value);
 }
 public virtual void Insert(int index, SelectColumn value)
 {
     base.List.Insert(index, value);
 }
 public virtual int IndexOf(SelectColumn value)
 {
     return base.List.IndexOf(value);
 }
 public virtual bool Contains(SelectColumn value)
 {
     return base.List.Contains(value);
 }
 public virtual void Add(SelectColumn value)
 {
     base.List.Add(value);
 }
 public SelectColumnCollection(SelectColumn[] items)
 {
     this.AddRange(items);
 }