Browse Source

Oracle RefCursor

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
b177965fe5
  1. 1
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs
  2. 4
      Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs

1
Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs

@ -9,6 +9,7 @@ namespace SqlSugar
{
public class SugarParameter : DbParameter
{
public bool IsRefCursor { get; set; }
public SugarParameter(string name, object value)
{
this.Value = value;

4
Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs

@ -127,6 +127,10 @@ namespace SqlSugar
{
sqlParameter.ParameterName = sqlParameter.ParameterName.TrimStart(':');
}
if (parameter.IsRefCursor)
{
sqlParameter.OracleDbType = OracleDbType.RefCursor;
}
if (sqlParameter.DbType == System.Data.DbType.Guid)
{
sqlParameter.DbType = System.Data.DbType.String;

Loading…
Cancel
Save