Beispiel #1
0
        public DbObj delete(params DbCnd[] cnd)
        {
            initializing = true;
            DbObj ret = Clone();
            DbDel d   = bscTbl.sR(cnd).DEL;

            db.exec(d);
            ret.reload();
            initializing = false;
            isDirty      = false;
            return(ret);
        }
Beispiel #2
0
        public DbObj readVrb(long top, bool distinct, string order, params DbCnd[] cnd)
        {
            initializing = true;
            DbObj ret = Clone();
            DbSlc s   = vrbTbl.sR(cnd).SLC;

            if (top > -1)
            {
                s = s.TOP(top);
            }
            if (distinct)
            {
                s = s.DST;
            }
            if (order.Trim().Length > 0)
            {
                s = s.ORD(order);
            }
            ret.loadRecsSlc = s;
            ret.reload();
            initializing = false;
            isDirty      = false;
            return(ret);
        }