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