Example #1
0
 public QColumnValueCondition(QColumnBase column1, string op, object value)
 {
     leftColumn  = column1;
     this.op     = op;
     this.value  = value;
     isSetValaue = true;
 }
Example #2
0
        public void OrderBy(QColumnBase column, OrderType orderType = OrderType.Asc)
        {
            if (_jump)
            {
                _jump = false; return;
            }

            _orderBys.Add(new OrderItem(column, orderType));
        }
Example #3
0
        public void GroupBy(QColumnBase column, params QColumnBase[] columns)
        {
            if (_jump)
            {
                _jump = false; return;
            }

            _groupBy.Add(column);
            foreach (var item in columns)
            {
                _groupBy.Add(item);
            }
        }
 public override string Delete(List <QTable> tables, QColumnBase pk, string tableName, string fromtable, string jointables, string where)
 {
     return($"DELETE t1 FROM {fromtable} {jointables} WHERE {where};");
 }
Example #5
0
        public int SelectCount(QColumnBase distinctColumn)
        {
            var column = ((IColumnConvert)distinctColumn).ToSql(Provider, _tables.Count);

            return(getCount(column));
        }
 public override string Delete(List <QTable> tables, QColumnBase pk, string tableName, string fromtable, string jointables, string where)
 {
     return("DELETE t1 FROM " + fromtable
            + " " + jointables
            + " WHERE " + where);
 }
Example #7
0
 //internal new QColumnBase leftColumn;
 //internal new QColumnBase rightColumn;
 public QJoinCondition(QColumnBase column1, string op, QColumnBase column2)
     : base(column1, op, column2)
 {
     //leftColumn = column1;
     //rightColumn = column2;
 }
Example #8
0
 public QColumnColumnCondition(QColumnBase column1, string op, QColumnBase column2)
 {
     leftColumn  = column1;
     Op          = op;
     rightColumn = column2;
 }
Example #9
0
 public QColumnValueCondition(QColumnBase column1, string op)
 {
     leftColumn = column1;
     this.op    = op;
 }
Example #10
0
 public OrderItem(QColumnBase column, OrderType orderType)
 {
     this.column    = column;
     this.orderType = orderType;
 }
Example #11
0
 public override string Delete(List <QTable> tables, QColumnBase pk, string tableName, string fromtable, string jointables, string where)
 {
     //http://bbs.csdn.net/topics/340167958
     return($"DELETE distinctrow t1.* FROM {fromtable} {jointables} WHERE {where};");
 }