修复一个获取存储过程参数的错误

This commit is contained in:
falcon 2021-01-08 14:39:04 +08:00
parent c25845c813
commit ed488ac5da

View File

@ -101,7 +101,7 @@ namespace Falcon.StoredProcedureRunner
continue;
var pt = getPrarmType(p);
if(pt.HasValue) {
var np = new SqlParameter($"@{getPrarmName(p)}",pt);
var np = new SqlParameter($"@{getPrarmName(p)}",pt.Value);
np.Value = p.GetValue(data);
yield return np;
} else {