Well... I re-tested it, but it still works properly:
procs:
/// <summary>Creates the call object for the call 'Getdeptno' to stored procedure 'PR_GETDEPTNO'.</summary>
/// <param name="dataAccessProvider">The data access provider.</param>
/// <param name="pEmpno">Input parameter</param>
/// <param name="oDeptno">Output parameter</param>
/// <returns>Ready to use StoredProcedureCall object</returns>
private static StoredProcedureCall CreateGetdeptnoCall(IDataAccessCore dataAccessProvider, System.Decimal pEmpno, System.Decimal oDeptno)
{
return new StoredProcedureCall(dataAccessProvider, "\"HR\".\"PR_GETDEPTNO\"", "Getdeptno")
.AddParameter("P_EMPNO", "Number", 0, ParameterDirection.Input, true, 38, 38, pEmpno)
.AddParameter("O_DEPTNO", "Number", 0, ParameterDirection.Output, true, 38, 38, oDeptno);
}
/// <summary>Creates the call object for the call 'PackageATestfunc' to stored procedure 'PackageA.TESTFUNC'.</summary>
/// <param name="dataAccessProvider">The data access provider.</param>
/// <param name="returnValue">ReturnValue parameter</param>
/// <param name="aparam">Input parameter</param>
/// <returns>Ready to use StoredProcedureCall object</returns>
private static StoredProcedureCall CreatePackageATestfuncCall(IDataAccessCore dataAccessProvider, System.String aparam, System.String returnValue)
{
return new StoredProcedureCall(dataAccessProvider, "\"HR\".\"PackageA.TESTFUNC\"", "PackageATestfunc")
.AddParameter("RETURN_VALUE", "VarChar", 4000, ParameterDirection.ReturnValue, true, 0, 0, returnValue)
.AddParameter("APARAM", "VarChar", 4000, ParameterDirection.Input, true, 0, 0, aparam);
}
don't exist in HR, but in scott.
<oracleSchemaNameOverwrites>
<add key="HR" value="SCOTT"/>
</oracleSchemaNameOverwrites>
commenting that out fails the code, having the overwriting works.
code:
string retVal = string.Empty;
ActionProcedures.PackageATestfunc("foo", ref retVal);
decimal deptno=0.0M;
ActionProcedures.Getdeptno(1.0M, ref deptno);
Succeeds..... They're properly executed on SCOTT. I verified it twice, also with the debugger...
I've attached the exact dll I'm using (which is a debug build).