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