Пример #1
0
        /// <summary>
        /// 得到一个实体内容
        /// </summary>
        public BasRole DetailRole(string id)
        {
            string  strSql = "select * from bas_role where  id = " + id;
            BasRole model  = new BasRole();
            DataRow dr     = DataBase.ExecuteDataRow(strSql);

            return(model);
        }
Пример #2
0
 public bool AddRole(BasRole model)
 {
     try
     {
         int count = DataBase.ExecuteNonQuery("");
         return(count > -1 ? true : false);
     }
     catch
     {
         return(false);
     }
 }
Пример #3
0
        public bool UpdateRole(BasRole model)
        {
            bool blFlag = false;
            int  num;

            try
            {
                num = DataBase.ExecuteNonQuery("");
            }
            catch (Exception exception)
            {
                throw exception;
            }
            blFlag = (num > 0 ? true : false);
            return(blFlag);
        }
Пример #4
0
 public bool UpdateRole(BasRole model)
 {
     return(dal.UpdateRole(model));
 }
Пример #5
0
 public bool AddRole(BasRole model)
 {
     return(dal.AddRole(model));
 }