mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
-
This commit is contained in:
parent
f3b4b1a060
commit
9fb116f46a
@ -133,6 +133,11 @@ namespace SqlSugar
|
||||
if (sqlParameter.Direction == 0)
|
||||
{
|
||||
sqlParameter.Direction = ParameterDirection.Input;
|
||||
}
|
||||
if (parameter.IsRefCursor)
|
||||
{
|
||||
sqlParameter.KdbndpDbType = KdbndpDbType.Refcursor;
|
||||
sqlParameter.Direction = ParameterDirection.Output;
|
||||
}
|
||||
result[index] = sqlParameter;
|
||||
if (sqlParameter.Direction.IsIn(ParameterDirection.Output, ParameterDirection.InputOutput, ParameterDirection.ReturnValue))
|
||||
@ -141,11 +146,6 @@ namespace SqlSugar
|
||||
this.OutputParameters.RemoveAll(it => it.ParameterName == sqlParameter.ParameterName);
|
||||
this.OutputParameters.Add(sqlParameter);
|
||||
}
|
||||
if (parameter.IsRefCursor)
|
||||
{
|
||||
sqlParameter.KdbndpDbType = KdbndpDbType.Refcursor;
|
||||
sqlParameter.Direction = ParameterDirection.Output;
|
||||
}
|
||||
++index;
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user