Exemplo n.º 1
0
        protected override void build(Item entity, int limit)
        {
            string       str       = entity.getStreamName();
            string       str2      = entity.getIdField();
            StringTheory condition = new StringTheory();

            base.BuildCondition(condition, entity);
            OracleSelectQuery query = new OracleSelectQuery(entity, -1);

            base.Append("DELETE FROM " + str);
            if (condition.Length > 0)
            {
                base.Append(" WHERE " + condition);
                if (limit > -1)
                {
                    base.Append(" AND rownum < ");
                    base.Append(limit + 1);
                }
            }
            else if (limit > -1)
            {
                base.Append(" WHERE rownum < ");
                base.Append(limit + 1);
            }
        }
Exemplo n.º 2
0
 protected override void build(Item entity, int limit)
 {
     string str = entity.getStreamName();
     string str2 = entity.getIdField();
     StringTheory condition = new StringTheory();
     base.BuildCondition(condition, entity);
     OracleSelectQuery query = new OracleSelectQuery(entity, -1);
     base.Append("DELETE FROM " + str);
     if (condition.Length > 0)
     {
         base.Append(" WHERE " + condition);
         if (limit > -1)
         {
             base.Append(" AND rownum < ");
             base.Append(limit + 1);
         }
     }
     else if (limit > -1)
     {
         base.Append(" WHERE rownum < ");
         base.Append(limit + 1);
     }
 }