예제 #1
0
파일: DBservice.cs 프로젝트: cruelwinter/QE
        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); }
 }