测试
List<DbParameter> paras = getDbParameter(request, db);
foreach (var param in paras)
{
sb.AppendLine(" 参数名:" + param.ParameterName + "," + "参数值:" + ((param.Value == null) ? "" : param.Value.ToString()));
}
DataSet ds = db.FindDataSetByProc(request.Protocol.ProcedureName, paras.ToArray());
if ((ds.Tables.Count > 0) && (ds.Tables[0].Rows.Count > 0))
{
response.htResult = GetResponseContent(request, ds, paras);
}
DbParameter pErrCode = paras.SingleOrDefault(t => t.ParameterName == "out_code");
DbParameter pMsg = paras.SingleOrDefault(t => t.ParameterName == "out_msg");
网友评论