Exemplo n.º 1
0
        public int DeleteFiles(String cnName, string sSql)
        {
            SqlBase db = NewDB(cnName);

            db.Connect();
            if (!db.IsConnected)
            {
                return(-1);
            }
            if (ULCode.QDA.Debug.IS_FORM_CLIENT)
            {
                return(-1);
            }
            int iR = db.DeleteFiles(sSql);

            db.Close();
            return(iR);
        }
Exemplo n.º 2
0
        public DbResult DeleteFiles_R(String cnName, string sSql)
        {
            SqlBase db = NewDB(cnName);

            db.Connect();
            int iR = 0;

            if (!db.IsConnected)
            {
                iR = -1;
            }
            else
            {
                iR = db.DeleteFiles(sSql);
            }
            DbResult dr = new DbResult(db);

            dr.ReturnValue = iR;
            db.Close();
            return(dr);
        }