I done that you sayed me and nothing did changed , i think that maybe my explanation was not good :
The problem is : a stored procedure whoses returns a cursor must be return dataset type , not an int type.
When a i do the generation , see the result :
/// <summary>Delegate definition for stored procedure 'GETUSERPERIMETER' to be used in combination of a UnitOfWork object.</summary>
public delegate int GetuserperimeterCallBack(System.Decimal userid, ITransaction transactionToUse);
/// <summary>Calls stored procedure 'GETUSERPERIMETER'.<br/><br/></summary>
/// <param name="userid">Input parameter of stored procedure. </param>
/// <param name="rc1">InputOutput parameter of stored procedure. </param>
/// <returns>Number of rows affected, if the database / routine doesn't surpress rowcounting.</returns>
public static int Getuserperimeter(System.Decimal userid)
{
return Getuserperimeter(userid, null);
}
/// <summary>Calls stored procedure 'GETUSERPERIMETER'.<br/><br/></summary>
/// <param name="userid">Input parameter of stored procedure. </param>
/// <param name="rc1">InputOutput parameter of stored procedure. </param>
/// <param name="transactionToUse">the transaction to use, or null if no transaction is available.</param>
/// <returns>Number of rows affected, if the database / routine doesn't surpress rowcounting.</returns>
public static int Getuserperimeter(System.Decimal userid, ITransaction transactionToUse)
{
using(StoredProcedureCall call = CreateGetuserperimeterCall(new DataAccessCoreImpl(new CommonDaoBase(), transactionToUse), userid))
{
int toReturn = call.Call();
return toReturn;
}
}
/// <summary>Creates the call object for the call 'Getuserperimeter' to stored procedure 'GETUSERPERIMETER'.</summary>
/// <param name="dataAccessProvider">The data access provider.</param>
/// <param name="userid">Input parameter</param>
/// <returns>Ready to use StoredProcedureCall object</returns>
private static StoredProcedureCall CreateGetuserperimeterCall(IDataAccessCore dataAccessProvider, System.Decimal userid)
{
object rc1 = null;
return new StoredProcedureCall(dataAccessProvider, "\"EVEREST\".\"GETUSERPERIMETER\"", "Getuserperimeter")
.AddParameter("USERID", "Decimal", 0, ParameterDirection.Input, true, 38, 0, userid)
.AddParameter("RC1", "RefCursor", 0, ParameterDirection.InputOutput, true, 0, 0, rc1);
}
I believe that the problem is in procedure parameters and parameters mappings are not configured correcly see these pictures of my copies screen :
parameters :
https://plus.google.com/u/0/photos/111270068714936282413/albums/5854468998992848145/5854469006304107026?authkey=CIC-w7Pj0KCLngE
parameter mapping :
https://plus.google.com/u/0/photos/111270068714936282413/albums/5854468998992848145/5854469002826313426?authkey=CIC-w7Pj0KCLngE
--> i think that the mapping parameters must return a dataset maybe , but in v3.5 trial , it's impossible to modify it.
Can you confirm me this ?