Exemple #1
0
        /// <summary>
        /// 删除角色、功能的关系
        /// </summary>
        /// <param name="roleId">角色id</param>
        /// <param name="count">删除记录数</param>
        /// <returns></returns>
        public Result DeletePer(int roleId, int count)
        {
            //关闭外键约束
            roleDao.changeKey(0);
            string row = roleDao.DeletePer(roleId, count);

            //开启外键约束
            roleDao.changeKey(1);
            if (row == "succ")
            {
                return(Result.除成功);
            }
            else
            {
                return(Result.除失败);
            }
        }