/// <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); }
public bool AddRole(BasRole model) { try { int count = DataBase.ExecuteNonQuery(""); return(count > -1 ? true : false); } catch { return(false); } }
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); }
public bool UpdateRole(BasRole model) { return(dal.UpdateRole(model)); }
public bool AddRole(BasRole model) { return(dal.AddRole(model)); }