示例#1
0
 //public bool DeleteRole(int roleId)
 //{
 //    sqlString = "Delete from A_Roles where Role_Id=@roleId";
 //    paraList = new List<Parameter>{
 //        new Parameter{ParameterName="@roleId",Value=roleId}
 //    };
 //    return sqlData.InsertOrUpdateOrDelete(sqlString, connString, paraList);
 //}
 public bool DeleteRole(int roleId)
 {
     sqlString = "DeleteRole";
     paraList  = new List <Parameter> {
         new Parameter {
             ParameterName = "@roleId", Value = roleId
         }
     };
     return(sqlData.ExcuteProcedure(sqlString, connString, paraList));
 }