【已解决】DBUtils.ExecuteDataSet执行存储过程,ReturnValue不返...
金蝶云社区-丹东老李
丹东老李
0人赞赏了该文章 1,788次浏览 未经作者许可,禁止转载编辑于2016年04月12日 17:24:48

DBUtils.ExecuteDataSet(ctx, CommandType.StoredProcedure, "{0}{1}".FormatWith(StSymbol.KqlPreFix, procName), para))
以上方法调用,参数中传入了 :
SqlParameter spReturn = new SqlParameter("@return_value", SqlDbType.Int)
{
Direction = ParameterDirection.ReturnValue
};

但 spReturn.Value总是默认值(无返回),为什么?