示例#1
0
        // 更新角色
        public bool Update(M_RoleInfo roleInfo)
        {
            string sqlStr = "UPDATE ZL_Role SET RoleName=@RoleName,Description=@Description WHERE RoleID=@RoleId";

            SqlParameter[] Params = roleInfo.GetParameters();
            return(SqlHelper.ExecuteSql(sqlStr, Params));
        }
示例#2
0
 public int insert(M_RoleInfo model)
 {
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
示例#3
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_RoleInfo model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.RoleID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }