Пример #1
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="ID"></param>
 /// <returns></returns>
 public List <SQL> Delete(string ID)
 {
     db.JsonToList <string>(ID).ForEach(item =>
     {
         if (!db.Delete <T_Function>(w => w.uFunction_ID == item.To_Guid(), li))
         {
             throw new MessageBox(db.ErrorMessge);
         }
     });
     return(li);
 }
Пример #2
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="ID"></param>
 /// <returns></returns>
 public List <SQL> Delete(string ID)
 {
     db.JsonToList <string>(ID).ForEach(item =>
     {
         if (!db.Delete <T_Roles>(f => f.uRoles_ID == Tools.getGuid(item), li))
         {
             throw new MessageBox(db.ErrorMessge);
         }
     });
     return(li);
 }
Пример #3
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="ID"></param>
 /// <returns></returns>
 public List <SQL> Delete(string ID)
 {
     db.JsonToList <string>(ID).ForEach(item =>
     {
         if (!db.Delete <T_UsersRoles>(w => w.uUsersRoles_UsersID == item.To_Guid(), li))
         {
             throw new MessageBox(db.ErrorMessge);
         }
         if (!db.Delete <T_Users>(w => w.uUsers_ID == item.To_Guid(), li))
         {
             throw new MessageBox(db.ErrorMessge);
         }
     });
     return(li);
 }