Exemplo n.º 1
0
 public void Init()
 {
     dao.Delete(new UserQueryForm {
         ID = defaultID
     });
     infodao.Delete(new UserInfoQueryForm {
         ID = defaultID
     });
     bll.Add(new User
     {
         ID       = defaultID,
         Enabled  = 1,
         Name     = defaultID,
         Password = defaultID,
     }, null, null);
 }
Exemplo n.º 2
0
        public bool Delete(UserQueryForm user)
        {
            ISqlMapper   mapper  = Common.GetMapperFromSession();
            UserDao      userdao = new UserDao(mapper);
            User_RoleDao urdao   = new User_RoleDao(mapper);
            UserInfoDao  uidao   = new UserInfoDao(mapper);

            UserQueryForm uform = new UserQueryForm
            {
                ID = user.ID
            };

            userdao.Delete(uform);

            UserInfoQueryForm uiform = new UserInfoQueryForm
            {
                ID = user.ID,
            };

            uidao.Delete(uiform);

            User_RoleQueryForm urform = new User_RoleQueryForm
            {
                UserID = user.ID,
            };

            urdao.Delete(urform);
            SOAFramework.Library.WeiXin.WeiXinApi.User.Delete(user.Name);
            return(true);
        }
Exemplo n.º 3
0
        public bool Delete(UserQueryForm user)
        {
            ISqlMapper mapper = Common.GetMapperFromSession();
            UserDao userdao = new UserDao(mapper);
            User_RoleDao urdao = new User_RoleDao(mapper);
            UserInfoDao uidao = new UserInfoDao(mapper);

            UserQueryForm uform = new UserQueryForm
            {
                ID = user.ID
            };
            userdao.Delete(uform);

            UserInfoQueryForm uiform = new UserInfoQueryForm
            {
                ID = user.ID,
            };
            uidao.Delete(uiform);

            User_RoleQueryForm urform = new User_RoleQueryForm
            {
                UserID = user.ID,
            };
            urdao.Delete(urform);
            SOAFramework.Library.WeiXin.WeiXinApi.User.Delete(user.Name);
            return true;
        }