Пример #1
0
        public bool removeRecord <T>(int id)
        {
            string table = typeof(T).Name;

            try { return(WillORM.DeleteRecord(table, id)); }
            catch { return(false); }
        }
Пример #2
0
        public static bool RemoveGroupUser(int list_id)
        {
            Dictionary <string, string> DS = new Dictionary <string, string>()
            {
                { "ID", list_id.ToString() }
            };

            try { return(WillORM.DeleteRecord("USER_GROUP_USER_LIST", DS)); }
            catch { return(false); }
        }
Пример #3
0
        public static bool RemoveGroupRight(int group_id)
        {
            Dictionary <string, string> DS = new Dictionary <string, string>()
            {
                { "USER_GROUP", group_id.ToString() }
            };

            try { return(WillORM.DeleteRecord("USER_GROUP_RIGHT", DS)); }
            catch { return(false); }
        }
Пример #4
0
 public static bool DeleteSubmission(int id)
 {
     try { return(WillORM.DeleteRecord("HOMEWORK_SUBMISSION_LIST", id)); }
     catch { return(false); }
 }
Пример #5
0
 public static bool RemoveGroup(int group_id)
 {
     try { return(WillORM.DeleteRecord("USER_GROUP", group_id)); }
     catch { return(false); }
 }