【已解决】DBUtils.ExecuteDataSet执行存储过程,ReturnValue不返...
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总是默认值(无返回),为什么?
推荐阅读