// 更新角色 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)); }
public int insert(M_RoleInfo model) { return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model))); }
/// <summary> /// 根据ID更新 /// </summary> public bool UpdateByID(M_RoleInfo model) { return(Sql.UpdateByIDs(strTableName, PK, model.RoleID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters())); }