コード例 #1
0
        /// <summary>
        /// 删除权限
        /// </summary>
        /// <returns></returns>
        public bool Delete()
        {
            ActionDAL dal    = new ActionDAL(connectionString);
            bool      result = dal.Delete(_actionid);

            if (result)     //删除后把ID设置为-1
            {
                _actionid = -1;
            }

            return(result);
        }