2018-10-04

2018-10-04  本文已影响0人  yangchch

测试

 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");
上一篇下一篇

猜你喜欢

热点阅读