測(cè)試
List<DbParameter> paras = getDbParameter(request, db);
foreach (var param in paras)
{
sb.AppendLine(" 參數(shù)名:" + param.ParameterName + "," + "參數(shù)值:" + ((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");