Ejemplo n.º 1
0
        public static bool delUploadFromSqlite(string guid)
        {
            string sql    = string.Format("DELETE FROM UploadData WHERE Guid='{0}'", guid);
            int    result = SqliteDBHelp.ExecuteSql(sql);

            if (result > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public static bool SetUploaded(string guid)
        {
            //string sql = string.Format("UPDATE UploadData SET IsUpload=1 WHERE Guid='{0}'", guid);
            string sql    = string.Format("DELETE FROM UploadData WHERE Guid='{0}'", guid);
            int    result = SqliteDBHelp.ExecuteSql(sql);

            if (result > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
        public static void updateMsgToSqlite(string guid, string msg)
        {
            string sql = string.Format("update UploadData set MSG='{0}',IsUpload=1 WHERE GUID='{1}'", msg, guid);

            SqliteDBHelp.ExecuteSql(sql);
        }
Ejemplo n.º 4
0
        public static bool DeleteUploaded(string guid)
        {
            string sql = string.Format("DELETE FROM UploadData WHERE Guid='{0}'", guid);

            return(SqliteDBHelp.ExecuteSql(sql) > 0);
        }